Search results for

“codesign”

3,223 results found

Post

Replies

Boosts

Views

Activity

I am creating a sticker pack and receiving this error: Command /usr/bin/codesign failed with exit code 1 ...I cannot figure out how to resolve this issue. Any ideas/suggestions?
Hi All,I am creating a sticker pack in X code and I keep receiving this error message:Command /usr/bin/codesign failed with exit code 1How do I resolve this issue? I've been troubleshooting but cannot find the error. I had it built earlier with out the error and then rerunning got it again.
0
0
707
Apr ’18
Reply to Facing issue while codesign the app.
sudo codesign -f -vv -o runtime --deep --timestamp -s Developer Id Cer: user(123455) try.dylib There are two problems here: Don’t sign code using sudo. The codesign tool needs access to your keychain and running as root can undermine that. Don’t sign code using --deep. See --deep Considered Harmful for an explanation as to why this is a problem. unable to build chain This post describes the two common most causes for that error. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Jun ’22
Reply to Cannot Debug Photos Extension under Ventura
That message is telling you that: Your program has the hardened runtime enabled. By default this prevents the debugger from attaching. Your program does not have the com.apple.security.get-task-allow entitlement to override that default. The second point is weird because Xcode applies this entitlement by default to Development signed builds. What does this return: % codesign -d -vvv --entitlements - /path/to/your.appex Make sure to point codesign at the app extension that you’re actually trying to debug; I would expect this to be within your container app. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Nov ’22
Reply to Keychain Access won't let me Export to a .p12 file
The recipe to transfer the Developer ID Certs --> MyCertificates isn't perfect....it did allow me to copy the Certs into login / MyCertificates, but if I then try to delete the Developer ID Certs associated with System / Certificates, the delete command deletes BOTH copies of the Cert, leaving me with nothing. The good news is that codesign accepts the Certs I transferred by .p12 file Export / Import onto my M2 computer (which was the higher-level problem). It only gives a warning about finding multiple copies of the same cert. I chose NOT to accept the answer because it leaves the codesign with this warning.
Jul ’25
Reply to Keychain Access won't let me Export to a .p12 file
This was never resolved properly. My Developer ID Certificates exist in two places within KeychainAccess: (correct) from login in MyCerticates (incorrect) from system in Certificates I tried to clean this up, but found that from the GUI, when you say to delete the Certificate in the incorrect location, it also deletes the one in the correct location. I accepted the status quo (2 copies of Certificate). The Codesign tool (embedded within the jpackage script) gives a warning two copies found of the certificate, choosing to use the fist one. Because of that failsafe feature, I was able to complete all my codesigning. With that, this thread is closed.
Aug ’25
Reply to App not launch on an M1 mac
Hello, thanks for the answer. com.apple.quarantine -> CHECK codesign -v -> CHECK UUID -> CHECK extract-certificates -> CHECK codesign -d -> CHECK But no success. here my commandline to build my app xcodebuild -archivePath ~/aaa.xcarchive -workspace ~/aaa.xcworkspace -scheme aaa archive -configuration Release -destination 'platform=OS X' xcodebuild -exportArchive -archivePath ~/aaa.xcarchive -exportPath ~/aaa -exportOptionsPlist ~/exportOptionsMacDev.plist exportOptionsMacDev.plist -> destination export method development provisioningProfiles com.aa.aaa DEV-profile signingCertificate Apple Development signingStyle manual teamID XXXX
Dec ’21
Reply to Is there any way to deal with the mess I created with certificates?
security tells me 4 valid identities found. Trying to sign: % codesign -s 'myidentifier' -f /tmp/mytrue /tmp/mytrue: errSecInternalComponent so it doesn't match. When I run the build on CircleCI, then codesign says it's a self-signed root and it refuses to do. When I look at the certificate in Keychain Utility, and evaluate it, on one machine it says it's fine, on another it says it's missing a root. I have compared the fingerprints of each of the intermediate certificates on the good machine to the certificates that are in the keychain on the machines that don't work, and those match. NB, I create a separate keychain for the certificates:
Jan ’23
Reply to IOFireWireAVCUserClient question
But this is always logged even if I DO NOT check sandbox entitlement.That’s weird. If you don’t have the sandbox enabled, you should never hit sandbox restrictions. I recommend that you confirm that the sandbox really is disabled. One good way to do this is to run codesign against your XPC Service’s pid. For example: $ codesign -d --entitlements :- `pgrep Finder` … lots of entitlements! …You can then check for the presents of the App Sandbox entitlement (com.apple.security.app-sandbox). Share and Enjoy — Quinn “The Eskimo!” Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Topic: App & System Services SubTopic: Drivers Tags:
Aug ’19
Reply to Notarized app not able to load dynamic library signed by another team
Two things:Check that your disabling of library validation is actually working. Run your app and then run codesign against the process. For example: % codesign -d -vvv --entitlements :- `pgrep TextEdit` .Check that the library was built with the macOS 10.9 SDK or later. Without that, you won’t be able to load it into a hardened runtime process. A good start here is otool: % otool -l /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration| grep -B 1 -A 4 VERSION You want to look for either a LC_VERSION_MIN_MACOSX or LC_BUILD_VERSION load command and then check the sdk field in that.After that, make sure that the code signature contains sha256 hashes. For example: % codesign -d -vvv /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration It’s OK if it has sha1 hashes as well but you have to have sha256 to be compatible with the hardened runtime.Share and Enjoy — Quinn “The Eskimo!” Apple Developer Relations, Developer Tec
Topic: Code Signing SubTopic: General Tags:
May ’20
I am creating a sticker pack and receiving this error: Command /usr/bin/codesign failed with exit code 1 ...I cannot figure out how to resolve this issue. Any ideas/suggestions?
Hi All,I am creating a sticker pack in X code and I keep receiving this error message:Command /usr/bin/codesign failed with exit code 1How do I resolve this issue? I've been troubleshooting but cannot find the error. I had it built earlier with out the error and then rerunning got it again.
Replies
0
Boosts
0
Views
707
Activity
Apr ’18
Reply to Facing issue while codesign the app.
sudo codesign -f -vv -o runtime --deep --timestamp -s Developer Id Cer: user(123455) try.dylib There are two problems here: Don’t sign code using sudo. The codesign tool needs access to your keychain and running as root can undermine that. Don’t sign code using --deep. See --deep Considered Harmful for an explanation as to why this is a problem. unable to build chain This post describes the two common most causes for that error. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Replies
Boosts
Views
Activity
Jun ’22
Reply to Cannot Debug Photos Extension under Ventura
That message is telling you that: Your program has the hardened runtime enabled. By default this prevents the debugger from attaching. Your program does not have the com.apple.security.get-task-allow entitlement to override that default. The second point is weird because Xcode applies this entitlement by default to Development signed builds. What does this return: % codesign -d -vvv --entitlements - /path/to/your.appex Make sure to point codesign at the app extension that you’re actually trying to debug; I would expect this to be within your container app. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Replies
Boosts
Views
Activity
Nov ’22
Reply to Keychain Access won't let me Export to a .p12 file
The recipe to transfer the Developer ID Certs --> MyCertificates isn't perfect....it did allow me to copy the Certs into login / MyCertificates, but if I then try to delete the Developer ID Certs associated with System / Certificates, the delete command deletes BOTH copies of the Cert, leaving me with nothing. The good news is that codesign accepts the Certs I transferred by .p12 file Export / Import onto my M2 computer (which was the higher-level problem). It only gives a warning about finding multiple copies of the same cert. I chose NOT to accept the answer because it leaves the codesign with this warning.
Replies
Boosts
Views
Activity
Jul ’25
Reply to Keychain Access won't let me Export to a .p12 file
This was never resolved properly. My Developer ID Certificates exist in two places within KeychainAccess: (correct) from login in MyCerticates (incorrect) from system in Certificates I tried to clean this up, but found that from the GUI, when you say to delete the Certificate in the incorrect location, it also deletes the one in the correct location. I accepted the status quo (2 copies of Certificate). The Codesign tool (embedded within the jpackage script) gives a warning two copies found of the certificate, choosing to use the fist one. Because of that failsafe feature, I was able to complete all my codesigning. With that, this thread is closed.
Replies
Boosts
Views
Activity
Aug ’25
Reply to A timestamp was expected but was not found
I'm actively facing this issue and cannot codesign any of my builds on CI. This is a major problem for us. https://developer.apple.com/forums/thread/687788 Created a ticket in Feedback Assistant, FB9493987.
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to Device build fail since upgrade to Xcode 7.3.1
File a bug and include reproduction steps (eg: a sample project would be ideal). I don't think there are any known issues here. Are you doing something codesigning yourself in a build script phase?
Replies
Boosts
Views
Activity
May ’16
Reply to new mac, codesign unknown error -1=ffffffffffffffff
>it would be nice if apple had a verbose mode for this codesign commandYou can right click the error message in Xcode and choose expand to get more details, including a description of the problem.
Replies
Boosts
Views
Activity
Jul ’18
Reply to CodeSign on macOS @ CircleCI - Command is stuck
If you run sample against codesign, where is it stuck? Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jan ’22
Reply to App not launch on an M1 mac
Hello, thanks for the answer. com.apple.quarantine -> CHECK codesign -v -> CHECK UUID -> CHECK extract-certificates -> CHECK codesign -d -> CHECK But no success. here my commandline to build my app xcodebuild -archivePath ~/aaa.xcarchive -workspace ~/aaa.xcworkspace -scheme aaa archive -configuration Release -destination 'platform=OS X' xcodebuild -exportArchive -archivePath ~/aaa.xcarchive -exportPath ~/aaa -exportOptionsPlist ~/exportOptionsMacDev.plist exportOptionsMacDev.plist -> destination export method development provisioningProfiles com.aa.aaa DEV-profile signingCertificate Apple Development signingStyle manual teamID XXXX
Replies
Boosts
Views
Activity
Dec ’21
Reply to Is there any way to deal with the mess I created with certificates?
security tells me 4 valid identities found. Trying to sign: % codesign -s 'myidentifier' -f /tmp/mytrue /tmp/mytrue: errSecInternalComponent so it doesn't match. When I run the build on CircleCI, then codesign says it's a self-signed root and it refuses to do. When I look at the certificate in Keychain Utility, and evaluate it, on one machine it says it's fine, on another it says it's missing a root. I have compared the fingerprints of each of the intermediate certificates on the good machine to the certificates that are in the keychain on the machines that don't work, and those match. NB, I create a separate keychain for the certificates:
Replies
Boosts
Views
Activity
Jan ’23
Reply to IOFireWireAVCUserClient question
But this is always logged even if I DO NOT check sandbox entitlement.That’s weird. If you don’t have the sandbox enabled, you should never hit sandbox restrictions. I recommend that you confirm that the sandbox really is disabled. One good way to do this is to run codesign against your XPC Service’s pid. For example: $ codesign -d --entitlements :- `pgrep Finder` … lots of entitlements! …You can then check for the presents of the App Sandbox entitlement (com.apple.security.app-sandbox). Share and Enjoy — Quinn “The Eskimo!” Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Topic: App & System Services SubTopic: Drivers Tags:
Replies
Boosts
Views
Activity
Aug ’19
Reply to Notarized app not able to load dynamic library signed by another team
Two things:Check that your disabling of library validation is actually working. Run your app and then run codesign against the process. For example: % codesign -d -vvv --entitlements :- `pgrep TextEdit` .Check that the library was built with the macOS 10.9 SDK or later. Without that, you won’t be able to load it into a hardened runtime process. A good start here is otool: % otool -l /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration| grep -B 1 -A 4 VERSION You want to look for either a LC_VERSION_MIN_MACOSX or LC_BUILD_VERSION load command and then check the sdk field in that.After that, make sure that the code signature contains sha256 hashes. For example: % codesign -d -vvv /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration It’s OK if it has sha1 hashes as well but you have to have sha256 to be compatible with the hardened runtime.Share and Enjoy — Quinn “The Eskimo!” Apple Developer Relations, Developer Tec
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’20
Reply to errSecInternalComponent building locally with Xcode
If you add -vvv to the codesign command, does that turn up anything new? Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’23
Reply to Xcode 8 Beta error launching simulator
Thank you very much...after being sick for a while, this solved my problem with error codesign...But I do not understand why suddenly this appears...I mean in Xcode7 the project with working correctly, but not in Xcode8... is this a bug in the new version?
Replies
Boosts
Views
Activity
Oct ’16