We have an iPad application for a customer who requires us to provide them with an unsigned .IPA file, which they then sign with their own credentials and distribute to their enterprise users.
Prior to Xcode 8.3, I've been able to create the unsigned .IPA using this command:
xcodebuild -exportArchive -archivePath $ARCHIVE_DIRECTORY'/'$APP_NAME'.xcarchive' -exportPath $OUT_PATH
Beginning with Xcode 8.3, that command gives me an error saying I need to provide an exportOptions.plist file, so I created one with the following contents:
<?xml version="1.0" encoding="UTF-8"?>
<!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>enterprise</string>
</dict>
</plist>
and use the same command as above with the addition of -exportOptionsPList ./exportOptions.plist
. Now I get this error instead:
No 'teamID' specified and no team ID found in the archive
I tried adding a teamID key to my exportOptions.plist file, but that was also unsuccessful, generating this error:
No valid iOS Distribution signing identities belonging to team xxxx were found.
(where xxxx is my team id)
I've searched for solutions and tried several without success. Most of the proposed solutions are for Xcode versions prior to 8.3 - the most common suggestion was to add CODE_SIGN_IDENTITY=""
and CODE_SIGNING_REQUIRED=NO
to the export command, but that did not help in my case (same error).