ERROR ITMS-90164: Invalid Code Signing Entitlements

Hi team,When uploading the ipa via transporter command line utility, the following message is returned. We are re-signing manually and curiously, the errors only occurs for app extensions and not the main app.

ERROR ITMS-90164: Invalid Code Signing Entitlements. The entitlements in your app bundle signature do not match the ones that are contained in the provisioning profile. According to the provisioning profile, the bundle contains a key value that is not allowed: '\''TeamId.ExtBundleId'\'' for the key '\''application-identifier'\'' in '\''Payload/MyApp.app/PlugIns/MyAppExtension/MyAppExtension'\''.

We are signing manually and our app entitlements are as such

<plist version="1.0">
<dict>
	<key>application-identifier</key>
	<string>TeamId.ExtBundleId</string>
	<key>aps-environment</key>
	<string>production</string>
	<key>beta-reports-active</key>
	<true/>
	<key>com.apple.developer.team-identifier</key>
	<string>TeamId</string>
	<key>com.apple.security.application-groups</key>
	<array>
		<string>group.BundleId</string>
	</array>
	<key>get-task-allow</key>
	<false/>
	<key>keychain-access-groups</key>
	<array>
		<string>TeamId.BundleId</string>
	</array>
</dict>
</plist>

Our provisioning profile entitles are

	<key>Entitlements</key>
	<dict>
		<key>beta-reports-active</key>
		<true/>
				<key>aps-environment</key>
		<string>production</string>
				<key>com.apple.security.application-groups</key>
		<array>
				<string>group.BundleId</string>
		</array>
				<key>application-identifier</key>
		<string>TeamId.BundleId.Extension</string>
				<key>keychain-access-groups</key>
		<array>
				<string>TeamId.*</string>
				<string>com.apple.token</string>
		</array>
				<key>get-task-allow</key>
		<false/>
				<key>com.apple.developer.team-identifier</key>
		<string>TeamId</string>
	</dict>

As far as these look, the application-identifier is the same. Any help here would be greatly appreciated

Post not yet marked as solved Up vote post of eouyang Down vote post of eouyang
569 views