Search code examples
iosxcodesigningmacos-monterey

Getting this error on macOS Monterey: Code signing "AppAuth.framework" failed


An screenshot of the error is here

It happens when trying to upload the app to Apple Connect from Xcode after achieving.

Here are the logs: IDEDistributionPipeline.log

2021-06-18 05:59:30 +0000  Running /usr/bin/codesign '-vvv' '--force' '--sign' '93D0804B68D64BEB32D3E27D45905B528D468CAE' '--entitlements' '/var/folders/l9/lc4s2hls2vg03bs4g3bct1d00000gn/T/XcodeDistPipeline.~~~1slhOn/entitlements~~~OmmxKx' '--preserve-metadata=identifier,flags,runtime' '/var/folders/l9/lc4s2hls2vg03bs4g3bct1d00000gn/T/XcodeDistPipeline.~~~1slhOn/Root/Payload/Belen.app/Frameworks/AppAuth.framework'
2021-06-18 05:59:30 +0000  /var/folders/l9/lc4s2hls2vg03bs4g3bct1d00000gn/T/XcodeDistPipeline.~~~1slhOn/Root/Payload/Belen.app/Frameworks/AppAuth.framework: internal error in Code Signing subsystem
2021-06-18 05:59:30 +0000  /usr/bin/codesign exited with 1

I'm importing this framework using CocoaPods.

Any ideas how can I fix this issue?

I've been struggling with this error for over a week.

Thanks!


Solution

  • This is a known issue on macOS Monterrey. Apple engineers are working on it.

    My workaround was to simply use another Mac with macOS Big Sur and it worked.