Provisioning Profile doesn't match the entitlements file

Issue:

I have one code base react-native where I have two schemes. My Production scheme seems to be building just fine and being signed by provisioned profiles that I have uploaded to bitrise. However my Development scheme doesnt seem to be able to sign against my provisioned profile (also uploaded to bitrise)

Using Bundle ID : com.chefsplate.mobileapp.beta

However, during my xcode archive step - I cannot seem to sign the ipa against my provisioning profile. (However, same step manually on xcode does work)

Resolving CodeSignGroups…
{
“bundle_id_profiles”: {
“com.chefsplate.mobileapp.beta”: [
“BitriseBot-Wildcard (335312dd-6845-475f-959b-9bbae2f97a3e)”
]
},
“certificate”: “iPhone Developer: Bitrise Bot (VV2J4SV8V4) (5642064371004531588)”,
“team”: “BITFALL FEJLESZTO KORLATOLT FELELOSSEGU TARSASAG (72SA8V3WYL)”
}
{
“bundle_id_profiles”: {
“com.chefsplate.mobileapp.beta”: [
“iOS Team Store Provisioning Profile: com.chefsplate.mobileapp.beta (cca…)”
]
},
“certificate”: “iPhone Distribution: Chef’s Plate Inc. () ()”,
“team”: “Chef’s Plate Inc. ()”
}
Filtering CodeSignInfo groups for target capabilities
Filtering CodeSignInfo groups for export method
Entitlements filter - removes profile if has missing capabilities
Export method filter - removes profile if distribution type is not: app-store
Entitlements filter - removes profile if has missing capabilities
Export method filter - removes profile if distribution type is not: app-store
default profile: {335312dd-6845-475f-959b-9bbae2f97a3e BitriseBot-Wildcard BITFALL FEJLESZTO KORLATOLT FELELOSSEGU TARSASAG 72SA8V3WYL * development [21bbc342c380001152f6f44055d3e8b3f4229740] [{
“expire”: “2019-01-27 13:24:27 +0000 UTC”,
“name”: “iPhone Developer: Bitrise Bot (VV2J4SV8V4)”,
“serial”: “5642064371004531588”,
“team”: “BITFALL FEJLESZTO KORLATOLT FELELOSSEGU TARSASAG (72SA8V3WYL)”
}] 2018-01-27 13:38:07 +0000 UTC 2019-01-27 13:38:07 +0000 UTC map[keychain-access-groups:[72SA8V3WYL.] get-task-allow:true application-identifier:72SA8V3WYL. com.apple.developer.team-identifier:72SA8V3WYL] false ios}
Profile name filter - removes profile with name: BitriseBot-Wildcard
generated export options content:

<?xml version="1.0" encoding="UTF-8"?> method app-store provisioningProfiles com.chefsplate.mobileapp.beta iOS Team Store Provisioning Profile: com.chefsplate.mobileapp.beta signingCertificate iPhone Distribution: Chef's Plate Inc. () teamID [08:28:36] set -o pipefail && xcodebuild "-exportArchive" "-archivePath" "/var/folders/90/5stft2v13fb_m_gv3c8x9nwc0000gn/T/__archive__603187654/Development.xcarchive" "-exportPath" "/var/folders/90/5stft2v13fb_m_gv3c8x9nwc0000gn/T/__export__369013480" "-exportOptionsPlist" "/Users/vagrant/deploy/export_options.plist" | xcpretty

:x: error: exportArchive: Automatic signing is unable to resolve an issue with the “Chefs Plate Dev.app” target’s entitlements.
:x: error: exportArchive: Provisioning profile “iOS Team Store Provisioning Profile: com.chefsplate.mobileapp.beta” doesn’t match the entitlements file’s value for the application-identifier entitlement

If you can’t find the reason of the error in the log, please check the raw-xcodebuild-output.log
The log file is stored in $BITRISE_DEPLOY_DIR, and its full path
is available in the $BITRISE_XCODE_RAW_RESULT_TEXT_PATH environment variable

How do I go about resolving this?

Hi @adityac26,

  1. Did you run your build locally via our CLI?
  2. Did you try that after a clean git clone into a new directory? Related guide: How to debug your build locally / "It works on my Mac/PC but not on bitrise.io"

Hi again. I tried all the above steps and still to no avail. Please advice

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Hi @adityac26,

Please fill out a new #issues:build-issues report, so we have all the context to help you! :slight_smile: