CodeSign /Users/macbook/Library/Developer/Xcode/DerivedData/appname-asdasdasd/Build/Intermediates.noindex/ArchiveIntermediates/appname/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/NotificationServiceExtension.appex
cd /Users/macbook/Documents/Projects/
export CODESIGN_ALLOCATE=/Users/macbook/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
export
PATH="/Users/macbook/Downloads/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Users/macbook/Downloads/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
Signing Identity: "Apple Distribution:teamname”
Provisioning Profile: "org_notificationService_profile"
/usr/bin/codesign --force --sign 0746A1A86EB886A02E571C83E3 --entitlements /Users/macbook/Library/Developer/Xcode/DerivedData/appname-fadmxslohyadleahgtrunjqbwjgw/Build/Intermediates.noindex/ArchiveIntermediates/appname/IntermediateBuildFilesPath/appname.build/Release-iphoneos/NotificationServiceExtension.build/NotificationServiceExtension.appex.xcent --timestamp=none /Users/macbook/Library/Developer/Xcode/DerivedData/appname-fadmxslohyadleahgtrunjqbwjgw/Build/Intermediates.noindex/ArchiveIntermediates/appname/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/NotificationServiceExtension.appex
Command CodeSign failed with a nonzero exit code
Created new distribution certificate and clean and build project again but still error is same If anyone knows then please let me know
CodePudding user response:
After some research on this finally solved.
Following steps required to follow after updating xcode 13:
- Remove Apple Worldwide Developer Relations Certificate Authority certificate from keychain
- Restart your system
- Restart xcode
- Download that certificate again from here : https://www.apple.com/certificateauthority/AppleWWDRCAG3.cer
- Clear derived data
- Now try to archive your code
hope this is helpful
