Hi there,
After my upgrade to Xcode 8.3, I'm running into an issue creating a .ipa file from the command line.
Previously I was running a 2-part process to build my project and create an xcarchive file, then export that xcarchive to a .ipa file.
Previous Script:
- xcodebuild -workspace myproject.xcworkspace -scheme MyProject archive -archivePath MyProject.xcarchive
- xcodebuild -exportArchive -exportFormat ipa -archivePath MyProject.xcarchive -exportPath MyProject -exportProvisioningProfile "MyProvisioningProfile"
I've updated -exportFormat to using the exportOptionsPlist (I added method=ad-hoc in my exportOptions.plist)
- xcodebuild -workspace myproject.xcworkspace -scheme MyProject archive -archivePath MyProject.xcarchive
- xcodebuild -exportArchive -exportOptionsPlist exportOptions.plist -archivePath MyProject.xcarchive -exportPath MyProject
I noticed that -exportProvisioningProfile is an invalid option, and when I omit it, I get an export failed.
Error Domain=IDEDistributionErrorDomain Code=1 "No valid iOS Distribution signing identities belonging to team ABCDEFGHIJKL were found." UserInfo={NSLocalizedDescription=No valid iOS Distribution signing identities belonging to team ABCDEFGHIJKL were found.}
** EXPORT FAILED **
Can someone please let me know how I can specify the provisioning profile that's supposed to be used to sign this export? I couldn't find any resources that documents this change in xcode 8.3.
Thanks,
Vic