Running into the issues with associated domains as well. We have them set in our app.json:
"associatedDomains": [
"applinks:pb.app.link",
"applinks:pb-alternate.app.link",
"applinks:pb.test-app.link",
"applinks:pb-alternate.test-app.link"
]
and enabled under our App ID.
I build the app with exp build:ios and open Application Loader on the latest XCode. Application loader gives me back the same error @kraegpoeth had :
ERROR ITMS-90163: "Invalid Code Signing Entitlements. The entitlements in your app bundle signature do not match the ones that are contained in the provisioning profile. The bundle contains a key that is not included in the provisioning profile: 'com.apple.developer.associated-domains' in 'Payload/ExpoKitApp.app/ExpoKitApp'."
Along with a likely unrelated warning:
WARNING ITMS-90076: "Potential Loss of Keychain Access. The previous version of software has an application-identifier value of ['QNKTC946NB.com.summerplaybook.playbookapp'] and the new version of software being submitted has an application-identifier of ['N6C7DBAK2F.com.summerplaybook.playbookapp']. This will result in a loss of keychain access."
I also noticed our Provisioning Profile has a status of Invalid. It expires on Feb 22, 2019 (the last time we built was Feb 22, 2018). We also have two certificates, one that expires Feb 22, 2019 and one that expires Jun 28, 2019, and the profile uses the former.
Is there any fix for this that doesn’t require us to add our certificates / profile manually? Going to try uploading the app without associated domains and see if that works, but it’d be a bummer to not be able to use branch links.
– More updates as I try to debug this (maybe useful for people who come by this later, for pitfalls, for understanding my issue, etc):
-
Likely relevant text from when I checked Enable Associated Domains: “If you wish to enable Associated Domains for any existing provisioning profiles associated with this App ID, you must also regenerate them.”
-
At some point I ran exp build:ios -c
and now get the following error when I try to let expo handle certificates:
[17:29:34] Only 1 team associated with your account, using Team ID: N6C7DBAK2F
? Will you provide your own Distribution Certificate? Let Expo handle the process
? Will you provide your own Push Certificate? Let Expo handle the process
[17:29:48] Error while gathering & validating credentials
[17:29:48] Reason:Unexpected response, raw:{"responseId":"3aa03466-3c48-4a71-8e1a-b099188469fa","resultCode":7460,"resultString":"Maximum number of certificates generated","userString":"You already have a current iOS Distribution certificate or a pending certificate request.","creationTimestamp":"2018-06-29T00:29:48Z","protocolVersion":"QH65B2","userLocale":"en_US","requestUrl":"https://developer.apple.com/services-account/QH65B2/account/ios/certificate/submitCertificateRequest.action","httpCode":200}
-
I just clicked regenerate on the provisioning profile with the new certificate. Didn’t fix anything, but don’t know if that’s something I should have done or not.
-
Just realized this could be related to me transferring ownership of the app from my personal developer account to a team developer account, hence the different Team IDs
-
Regenerated provisioning profile with the old cert and revoked the ones that (I think) were new. Tried another exp build:ios -c
and got a different error:
? Will you provide your own Distribution Certificate? Let Expo handle the process
? Will you provide your own Push Certificate? Let Expo handle the process
[17:40:40] Error while gathering & validating credentials
[17:40:40] Reason:Unexpected response, raw:{"responseId":"8c138e7c-be2f-4eaf-9d48-d2f98f8f21ee","resultCode":35,"resultString":"There were errors in the data supplied. Please correct and re-submit.","userString":"Multiple profiles found with the name 'com.summerplaybook.playbookapp AppStore'. Please remove the duplicate profiles and try again.","creationTimestamp":"2018-06-29T00:40:40Z","protocolVersion":"QH65B2","userLocale":"en_US","requestUrl":"https://developer.apple.com/services-account/QH65B2/account/ios/profile/createProvisioningProfile.action","httpCode":200,"validationMessages":[{"validationKey":"provisioningProfileName","validationUserMessage":"Multiple profiles found with the name 'com.summerplaybook.playbookapp AppStore'. Please remove the duplicate profiles and try again."}]}
-
A feeling at this point: would be super nice to have some docs explaining the expo <> apple <> certs relationship. The docs don’t explain when you’d need to upload your own certs, or what to do if I get into a tricky situation like this (revoke certs?).
-
Now looking through making a p12 file, the article linked in the expo docs if you’re going to manually handle certs.