vedhanish
vedhanish

Reputation: 261

Xcode 9 export options how to specify provisioning profile

I am running the build using Jenkins and with Xcode 9 beta, I am getting an error with the profile. Here is the error that I am getting

NSLocalizedRecoverySuggestion=Select a provisioning profile for the "Default" build configuration in the project editor.}

Please let me know how can I resolve this. Thanks.

Upvotes: 2

Views: 3022

Answers (1)

Tony TRAN
Tony TRAN

Reputation: 2178

Please follow these steps:

  1. Manually generate and export the IPA file with Xcode, it will create a file name ExportOptions.plist in the exported folder, copy that file to workspace root folder
  2. In Jenkin General build settings, uncheck "Pack application, build and sign .ipa?", and check "Generate Archive?"
  3. Add an Execute cell like this: xcodebuild -exportArchive \ -archivePath "${WORKSPACE}/build/YourProject.xcarchive" \ -exportPath "${JENKINS_HOME}/jobs/${JOB_NAME}/builds/${BUILD_NUMBER}/archive" \ -exportOptionsPlist "${WORKSPACE}/ExportOptions.plist"
  4. (optional) Setup again your next steps on upload IPA file if any.

Upvotes: 5

Related Questions