Qualify Mac Build for TestFlight

I want to upload a MacOS App to App Store Connect and have it be available to test in TestFlight. I have already managed to sign the application as needed, as I can upload builds. The problem is, that they get marked as "Not Available for Testing".

At first App Store Connect notified me of this issue:

"ITMS-90889: 'Cannot be used with TestFlight because the bundle at “RougeLike.app” is missing a provisioning profile. Main bundles are expected to have provisioning profiles in order to be eligible for TestFlight.'"

I added a provisioning profile to the app bundle at Contents/embedded.provisionprofile. Now I don't get this notification anymore, but the app still is marked as "Not Available for Testing".

Does anybody know how to solve that?

Answered by PhilippMayr in 700939022

I found what I was missing: My entitlements.plist where missing these two entries:

<key>com.apple.application-identifier</key>
<string>XXXXXXX.com.sample.app</string>
<key>com.apple.developer.team-identifier</key>
<string>XXXXXXX</string>

where XXXXXXX is your developer team id and com.sample.app is your apps bundle identifier. These values must be the same as in the provisioning profile. You can check those values with this command:

security cms -D -i embedded.provisionprofile | xmllint --xpath "/plist/dict/key[text()='Entitlements']/following-sibling::dict[position()=1]" -
Accepted Answer

I found what I was missing: My entitlements.plist where missing these two entries:

<key>com.apple.application-identifier</key>
<string>XXXXXXX.com.sample.app</string>
<key>com.apple.developer.team-identifier</key>
<string>XXXXXXX</string>

where XXXXXXX is your developer team id and com.sample.app is your apps bundle identifier. These values must be the same as in the provisioning profile. You can check those values with this command:

security cms -D -i embedded.provisionprofile | xmllint --xpath "/plist/dict/key[text()='Entitlements']/following-sibling::dict[position()=1]" -
Qualify Mac Build for TestFlight
 
 
Q