0
votes

I am using Xcode plugin of Jenkins which is working for Xcode 8.3 but it is not compatible with Xcode 9.0 because of changes in code signing .

I am getting the error as below :

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

** EXPORT FAILED **

2

2 Answers

5
votes

I was also getting this error. But now solved the issue. I can build successfully in Xcode9.0 and Xcode9.2.

Here are the steps mentioned below to overcome above error.

  • Manually generate and export the IPA file with Xcode. This will create a file name ExportOptions.plist in the exported folder.
  • Copy that file to workspace root folder.
  • In Jenkin General build settings, uncheck “Pack application, build and sign .ipa?”, and check “Generate Archive?”.
  • And last, add an Execute shell like this,

     xcodebuild -exportArchive -archivePath ${WORKSPACE}/build/YourProject.xcarchive -exportPath ${JENKINS_HOME}/jobs/${JOB_NAME}/builds/${BUILD_NUMBER}/archive -exportOptionsPlist ${WORKSPACE}/ExportOptions.plist
    
0
votes

what works for me:

  1. Keychain: Move two signing certificates (iphone dev and iphone distr) from Login to System.

  2. make sure that "trust" property set to "system default"