I am using the xcode plugin (version 2.0.1) with jenkins to create our collections for several target applications.
With Xcode 9, our jenkins build configuration is able to generate an archive, but does not create an ipa. The error message is as follows:
Error Domain=IDEProvisioningErrorDomain Code=9 ""test.app" requires a provisioning profile." UserInfo={NSLocalizedDescription="test.app" requires a provisioning profile., NSLocalizedRecoverySuggestion=Add a profile to the "provisioningProfiles" dictionary in your Export Options property list.}
I already added a provisioning profile in the Jenkins Custom xcodebuild arguments section by passing PROVISIONING_PROFILE, PROVISIONING_PROFILE_SPECIFIER, CODE_SIGN_IDENTITY, CODE_SIGN_STYLE and DEVELOPMENT_TEAM, however it still clears the same error message. In addition, I also pass the ExportOptions.plist file in the Build phase Run script option, but it looks like Xcode is creating its own ExportOptions.plist ( enterpriseTEAMIDExport.plist ) and ignoring mine. When I open the enterpriseTEAMIDExport.plist file, it contains only the teamid command and the export method, and therefore it does not find the provisioning profile.
So how can I tell xcode to use my ExportOptions.plist file? I followed the image here , but could not find it inside Xcode 9. Also, this message does not apply to me.
Another important thing: I can generate ipa using my own ExportOptions.plist file from the xcodebuild command line using the following command:
xcodebuild -exportArchive -archivePath archive.xcarchive -exportPath /my/export/path -exportOptionsPlist options.plist
So, I do not know why it does not work with the Jenkins Xcode plugin.
Any help is greatly appreciated.
Thank!
source
share