Run on real device provisioning fail


#1

Hi,
until today everything works great. But now I suddenly getting this error. I try reinstall certificates and provisioning profiles. It didn’t help. Thats really weird. The same error I am getting when I set certificates and provisioning profiles in NativeScript Sidekick…

Error Domain=IDEProvisioningErrorDomain Code=8 “term-size has conflicting provisioning settings.” UserInfo={NSLocalizedDescription=term-size has conflicting provisioning settings., NSLocalizedRecoverySuggestion=term-size is automatically signed for distribution, but a conflicting code signing identity iPhone Developer has been manually specified. Remove the “signingCertificate” entry from your Export Options property list, or switch to manual signing by setting “signingStyle” to "Manual.}


#2

Try this,

tns run ios --provision
You’ll see a list of available provisioning profiles for that app.
Copy the provisioning profile string for Development profile.

then do tns run ios --provison <PROVISION_PROFILE_STRING>

example: tns run ios --provision 2gd2318a-e17s-4ep0-8e22-5dd6857fd119


#3

Still getting an error after specifying my provisioning profile UUID. Any ideas?

=== BUILD TARGET mymobilenative OF PROJECT mymobilenative WITH CONFIGURATION Debug ===
Code Signing Error: Provisioning profile "iOS Team Provisioning Profile: *" is Xcode managed, but signing settings require a manually managed profile.
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.2'
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.2'
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.2'
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.2'
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.2'
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.2'
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.2'

#5

Same problem here. :frowning:


#6

I faced the same issue earlier then I have deleted the all provisioning from my machine. and tried to rebuild the app.
tns platform remove ios

Remove all certificate and provision profile from machine.
~/Library/MobileDevice/Provisioning Profiles/
Open finder on your mac, and click on Go -> Go to Folder … Just paste this paste into the search bar and hit Open. It will show the list of provisioning profiles present in Xcode. Delete all provisioning profiles.
Download new provision from https://developer.apple.com/account/ios/profile/limited
now try: run tns run ios


#7

I got it working eventually, I nuked all my provisioning profiles as suggested, thanks.