Skip to content

Export fails for Xcode 9 beta 5 #3046

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dtopuzov opened this issue Aug 10, 2017 · 2 comments
Closed

Export fails for Xcode 9 beta 5 #3046

dtopuzov opened this issue Aug 10, 2017 · 2 comments

Comments

@dtopuzov
Copy link
Contributor

iOS builds with --provision option fail with Xcode9 beta 5
Notes: Build with --teamId works properly.

Which platform(s) does your issue occur on?

iOS

Please provide the following version numbers that your issue occurs with:

  • CLI: 3.1.3 (and next)
  • Cross-platform modules: next
  • Runtime(s): next
  • Plugin(s): no

Please tell us how to recreate the issue in as much detail as possible.

tns create TestApp
tns build ios --provision <ID-of-valid-provision> --path TestApp --forDevice  --release

Result is:

** ARCHIVE SUCCEEDED **

2017-08-10 10:30:11.909 xcodebuild[35724:1897631] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/b9/9dy06b4n2g13w7y2ltjwpdvnd55qr0/T/TestApp_2017-08-10_10-30-11.908.xcdistributionlogs'.
2017-08-10 10:30:12.572 xcodebuild[35724:1897631] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7fe1874348b0>: Error Domain=IDEDistributionSigningAssetStepErrorDomain Code=0 "Locating signing assets failed." UserInfo={NSLocalizedDescription=Locating signing assets failed., IDEDistributionSigningAssetStepUnderlyingErrors=(
    "Error Domain=IDEProvisioningErrorDomain Code=9 \"\"TestApp.app\" requires a provisioning profile.\" UserInfo={NSLocalizedDescription=\"TestApp.app\" requires a provisioning profile., NSLocalizedRecoverySuggestion=Add a profile to the \"provisioningProfiles\" dictionary in your Export Options property list.}"
)}
error: exportArchive: "TestApp.app" requires a provisioning profile.

Error Domain=IDEProvisioningErrorDomain Code=9 ""TestApp.app" requires a provisioning profile." UserInfo={NSLocalizedDescription="TestApp.app" requires a provisioning profile., NSLocalizedRecoverySuggestion=Add a profile to the "provisioningProfiles" dictionary in your Export Options property list.}

** EXPORT FAILED **

Command xcodebuild failed with exit code 70
@dtopuzov
Copy link
Contributor Author

From @PanayotCankov:

The export options plist has additional fields:

    provisioningProfiles : Dictionary

        For manual signing only. Specify the provisioning profile to use for each executable in your app. Keys in this dictionary are the bundle identifiers of executables; values are the provisioning profile name or UUID to use.

When performing a build with --provision option, or if provision is specified in the .xcconfig, the signing mode is switched from auto to manual. The CLI commands for tns build|run ios do an Xcode build and then Xcode export.

The solution would be to add provisioningProfiles dictionary with the app id key and provision UUID or identifier here:

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>method</key>
<string>${exportOptionsMethod}</string>
<key>uploadBitcode</key>
<false/>
</dict>
</plist>`;

@dtopuzov dtopuzov changed the title iOS builds with --provision option fail with Xcode9 beta 5 Export fails for Xcode 9 beta 5 Aug 14, 2017
@etabakov etabakov removed this from the 3.2.0 milestone Aug 15, 2017
@PanayotCankov PanayotCankov self-assigned this Aug 16, 2017
@dtopuzov
Copy link
Contributor Author

Issues is fixed and --provision support for Xcode9 is available in nativescript@next

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants