Skip to content

Manual signing with distribution provisioning profile fails with NS 2.5 #2501

@dbenninger

Description

@dbenninger

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:

  1. Use NS 2.5 to create a test app: tns create "SignTest" --ng
  2. In the file app/App_Resources/iOS/build.xcconfig, enable CODE_SIGN_IDENTITY = iPhone Distribution;
  3. Create an adhoc distribution provisioning profile for your SignTest app id and link it to your distribution certificate
  4. Install the distribution provisioning profile and distribution certificate locally
  5. Run the build with: tns build ios --release --for-device --provision (UUID)
  6. 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:
xcode

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions