Xcode 12.2 codesign Widget error??

Have been days I am stuck on this, really hoping someone can help.

I have added Widget to my existing AppKit project (macOS), and all works fine.

However when I try to archive, it keeps failing at this error:

Code Block 020-11-14 23:58:29 +0000 Running /usr/bin/codesign '-vvv' '--force' '--sign' 'E3BEE4CA7E5D6AEC9EBAEF9B2A7D8735DDAB2C63' '--entitlements' '/var/folders/gv/cqghcvl50690hwhk3bbpf7pr0000gn/T/XcodeDistPipeline.~~~HAVL4T/entitlements~~~tuLU24' '--preserve-metadata=identifier,flags,runtime' '/var/folders/gv/cqghcvl50690hwhk3bbpf7pr0000gn/T/XcodeDistPipeline.~~~HAVL4T/Root/Applications/XXXX.app/Contents/PlugIns/Mac WidgetExtension.appex'
2020-11-14 23:58:29 +0000 /var/folders/gv/cqghcvl50690hwhk3bbpf7pr0000gn/T/XcodeDistPipeline.~~~HAVL4T/Root/Applications/XXXX.app/Contents/PlugIns/Mac WidgetExtension.appex: replacing existing signature
2020-11-14 23:58:29 +0000 /var/folders/gv/cqghcvl50690hwhk3bbpf7pr0000gn/T/XcodeDistPipeline.~~~HAVL4T/Root/Applications/XXXX.app/Contents/PlugIns/Mac WidgetExtension.appex: code object is not signed at all
2020-11-14 23:58:29 +0000 /usr/bin/codesign exited with 1


Have tried:
  • Clearing and removing all certificates

  • Upgrading to Big Sur

  • Removed and recreate Widget Target

  • Manually creating provisioning profiles



Replies

Any news on this?
We seem to have a similar issue.

Code Block
     ../../../ci-build/buildOutput/ios/***.iOS/***.app/PlugIns/[AppName].WidgetExtension.appex: code object is not signed at all

I just created my first widget and have the same error. Does anyone have a solution?

Add a Comment