Skip to content

Flutter Build Issue MacOS - Invalid Code Signing Entitlements (while uploading to Testflight) #1679

@flawnn

Description

@flawnn

What happened?

Same issue as in #1151:

@whaleHan Can you tell me how you solved it - your issue seems closed!

And besides that obviously, let me know if anyone knows a fix for this

What happened?
After building the macos application and uploading it to the Apple App Store, Apple sends an email.

TMS-90288: 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: '' for the key 'com.apple.application-identifier' in '***.app/Contents/Frameworks/realm.framework/Versions/A/Resources/librealm_dart.dylib'

ITMS-90286: Invalid Code Signing Entitlements - Your application bundle's signature contains code signing entitlements that are not supported on macOS. Specifically, value '' for key 'com.apple.application-identifier' in '***.app/Contents/Frameworks/realm.framework/Versions/A/Resources/librealm_dart.dylib' is not supported. This value should be a string starting with your TEAMID, followed by a dot '.', followed by the bundle identifier .

Repro steps
1、Upload realm to 1.0.0 from 0.9.0+rc
2、Xcode building MacOS Application and uploading TestFight。
3、After uploading success, Apple sends an email:

Dear Developer,

We identified one or more issues with a recent delivery for your app, "NowDO:日程计划&番茄钟&日历&提醒&时间管理&读书学习" 1.2.0 (35). Please correct the following issues, then upload again.

ITMS-90288: 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: '' for the key 'com.apple.application-identifier' in 'NowDO.app/Contents/Frameworks/realm.framework/Versions/A/Resources/librealm_dart.dylib'

ITMS-90286: Invalid Code Signing Entitlements - Your application bundle's signature contains code signing entitlements that are not supported on macOS. Specifically, value '' for key 'com.apple.application-identifier' in 'NowDO.app/Contents/Frameworks/realm.framework/Versions/A/Resources/librealm_dart.dylib' is not supported. This value should be a string starting with your TEAMID, followed by a dot '.', followed by the bundle identifier .

Repro steps

Build on CodeMagic in CI/CD Environment - then upload to TestFlight

Version

3.19.3

What Atlas Services are you using?

Atlas Device Sync

What type of application is this?

Flutter Application

Client OS and version

2.2.1

Code snippets

No response

Stacktrace of the exception/crash you're getting

No response

Relevant log output

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions