ITMS-90334: Invalid Code Signature Identifier

I get the following error in Xcode Cloud when attempting to prepare a build for App Store:

"ITMS-90334: Invalid Code Signature Identifier. The identifier "SwiftCharts-555549449cfa473253483215b74c174849d2ec9c" in your code signature for "SwiftCharts" must match its Bundle Identifier "SwiftCharts".

This is an iOS app and Swift Charts is swift package dependency which the app depends on. Since it is a dynamic library, it is included via the "Embed & Sign" option.

This was reported on SO by another user. They worked around it by making changes to the source package, I believe. That workaround may be difficult in my case as I do not control the source package. It's a 3rd party dependency that I'd prefer not to maintain a fork of.

Any ideas of why Xcode cloud is hitting this issue or any other workarounds? I've confirmed via a codesign check that the Identifier is resolving to that special hash when doing this from Xcode Cloud. It does not have that hash when I attempt to build/archive/upload locally.

$ codesign -d -v SwiftCharts.framework/SwiftCharts 
Identifier=SwiftCharts-555549449cfa473253483215b74c174849d2ec9c
Format=bundle with Mach-O thin (arm64)
CodeDirectory v=20400 size=6872 flags=0x0(none) hashes=205+5 location=embedded
Signature size=4765
Signed Time=Oct 30, 2022 at 8:33:59 AM
Info.plist entries=22
TeamIdentifier=<redacted>
Sealed Resources version=2 rules=10 files=0
Internal requirements count=1 size=220

Accepted Reply

See this post.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Replies

See this post.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Thanks Quinn - I'll use that post for any further discussions.