-
-
Notifications
You must be signed in to change notification settings - Fork 194
Closed
Description
When specifying the provisioning profile with the new command line parameter "--provision", the "CODE_SIGN_IDENTITY = iPhone Distribution" in build.xcconfig is ignored and "iPhone Developer" is used. The xcode build fails with the error message 'Provisioning profile "" doesn't include signing certificate "iPhone Developer: ..."' because it cannot find a developer certificate for the adhoc distribution provisioning profile.
To reproduce:
- Use NS 2.5 to create a test app: tns create "SignTest" --ng
- In the file app/App_Resources/iOS/build.xcconfig, enable CODE_SIGN_IDENTITY = iPhone Distribution;
- Create an adhoc distribution provisioning profile for your SignTest app id and link it to your distribution certificate
- Install the distribution provisioning profile and distribution certificate locally
- Run the build with: tns build ios --release --for-device --provision (UUID)
- The build fails with: Provisioning profile "..." doesn't include signing certificate "iPhone Developer: ..."
Manually editing the generated project.pbxproj and replacing "iPhone Developer" with "iPhone Distribution" solves the issue.
Opening the generated project settings in xcode shows you the same error message:
spike1292, ddfreiling and HarrisonWelch