Search results for

“codesign”

3,221 results found

Post

Replies

Boosts

Views

Activity

Reply to macOS 10.15.4: The signature could not be validated because AMFI could not load its entitlements for validation
We're having the same problem, with seemingly no sollution.We're trying to codesign an app for MacOS made with Unity, we follow the following guide to do so:https://docs.unity3d.com/Manual/HOWTO-PortToAppleMacStore.htmlBut as soon as we codesign the .app file, we get the same error message in our system.logThe signature could not be validated because AMFI could not load its entitlements for validation: entitlements cannot be parsedThe .app works fine before codesigning, you'll have to circumvent Apple's gatekeeper but it launces.After codesigning it just completely fails to start.
Topic: Code Signing SubTopic: General Tags:
Jun ’20
HI guys I had an error in Xcode 10. Command CodeSign failed with nonzero exit code
To be specific it is related to vuforia framework./Users/jagruth/Library/Developer/Xcode/DerivedData/Unity-iPhone-cnaqgnyaxmxsgrcjphmxndjruogs/Build/Products/ReleaseForRunning-iphoneos/ArSample11.app/Frameworks/Vuforia.framework: errSecInternalComponentCommand CodeSign failed with a nonzero exit code
3
0
23k
Jul ’18
App is damaged and can't be opened, despite being codesigned
I have a toy application that uses CMake to generate a .dmg that contains a simple c++ binary that prints codesignTest. The binary gets signed by CMake, and I manually sign the .dmg. I am using the Unix Makefiles generator, and am signing with a Developer ID Application certificate with a Private Key. Despite this, I still get an App is damaged and can't be opened error when running the binary on a secondary test MacOS machine. I've created a github repository with instructions on how to reproduce this problem, and I've copy/pasted the binary's signature below. Is there anything invalid with my signature? Thank you. cisl-ridgeland:~ pearse$ codesign -dv --verbose=4 /Applications/codesignTest.app/Contents/MacOS/codesignTest Executable=/Applications/codesignTest.app/Contents/MacOS/codesignTest Identifier=codesignTest Format=bundle with Mach-O thin (arm64) CodeDirectory v=20400 size=496 flags=0x0(none) hashes=10+2 location=embedded VersionPlatform=1 VersionMin=786432 VersionSDK=787200 Hash type=sha256 s
3
0
1.9k
Nov ’23
Mac App Launch error after Mac codesign with --options runtime
hi, team, we used the py2app to build the mac app, the app works well before the codesign. But when I codesign it with the --options runtime the app can't startup. with the below error: /petoi-mac-app/Petoi Desktop App.app/Contents/MacOS/Petoi Desktop App ; exit; Traceback (most recent call last): File /Petoi Desktop App.app/Contents/Resources/__boot__.py, line 147, in _setup_ctypes() File /petoi-mac-app/Petoi Desktop App.app/Contents/Resources/__boot__.py, line 140, in _setup_ctypes from ctypes.macholib import dyld File , line 983, in _find_and_load File , line 967, in _find_and_load_unlocked File , line 668, in _load_unlocked File , line 638, in _load_backward_compatible File ctypes/__init__.pyc, line 551, in File ctypes/__init__.pyc, line 273, in _reset_cache MemoryError 2024-02-21 19:57:09.168 Petoi Desktop App[93968:1375266] Launch error 2024-02-21 19:57:09.168 Petoi Desktop App[93968:1375266] Launch error See the py2app website for debugging launch issues But if I removed the --optio
1
0
733
Feb ’24
codesign command failed - Requirement syntax error - unexpected token
I am trying to distribute my Unity app to test flight. Build works on iPhone locally, archiving also works but when I start distribution to test flight I get this Error codesign command failed (/var/folders/gn/ql1bht8j2z7b18b3xtt0j7rr0000gn/T/XcodeDistPipeline.~~~2gmyFJ/Root/Payload/TondoJigsaw2.app/Frameworks/UnityFramework.framework: replacing existing signature /var/folders/gn/ql1bht8j2z7b18b3xtt0j7rr0000gn/T/XcodeDistPipeline.~~~2gmyFJ/Root/Payload/TondoJigsaw2.app/Frameworks/UnityFramework.framework: invalid or corrupted code requirement(s) Requirement syntax error(s): line 1:152: unexpected token: sQuaricon ) I am not sure what is the problem Team name is: “sQuaricon” Name Surname s.p. Bundle ID is: com.Squaricon.TondoJigsaw2 When I change bundle ID to com.testasd.TondoJigsaw2 (I do this in Xcode before archiving) that error disappears and I reach the part where I have to pick language. Even though this is not the solution, I think it is interesting, it implies issue might be with Bundle ID but
2
0
139
May ’25
SMAppService: registerAndReturnError fails with Codesigning failure loading plist code: -67054
When registering the LaunchDaemons of the application using SMAppService:registerAndReturnError, I am seeing the below error. The operation couldn’t be completed. Codesigning failure loading plist: code: -67054 Above issue is seen only on Ventura 13.0.1 and Ventura 13.1 versions. It is working fine on Ventura 13.5, Ventura 13.6 and Sonoma 14.2 as well. When I checked the system logs using sudo log stream --debug --info --predicate process in { '', 'smd', 'backgroundtaskmanagementd'} and sender in {'ServiceManagement', 'BackgroundTaskManagement', 'smd', 'backgroundtaskmanagementd'} I see below error 2024-02-27 16:02:22.382487+0530 0x4c006 Error 0x0 321 0 smd: [com.apple.libxpc.SMAppServiceShared:all] Static code signature check failed: -67054 2024-02-27 16:02:22.382500+0530 0x4c006 Error 0x0 321 0 smd: [com.apple.libxpc.SMAppServiceShared:all] Unable to validate code signature on bundle for . Code: -67054 2024-02-27 16:02:22.384288+0530 0x4c006 Error 0x0 321 0 smd: [com.apple.xpc.smd:SMAppServiceFa
1
0
911
Feb ’24
Creating codesigned AppleScript apps
In the past it was relatively easy to download from the developer portal both the app signing and installer signing certs so that I could sign AppleScripts from Script Editor when exporting them and when building packages in Jamf Composer. I went to set that up today and it seems things have changed in the last few years since I've had to set this up. I've been unable to sort this out and would love some help. I'm looking for a tutorial on doing this that walks someone step-by-step through the process for obtaining the certs (yes, I have dev account) and setting them up in keychain and then making use of them. Thanks!
1
0
181
Jun ’25
Is there any way to disable sandboxing/notarization/codesigning on an existing app? (already built)
Crazy question, but it came from a friend now working at a different company and I wanted to make sure I'm not telling him the wrong thing. I said no, but I'm not 100% sure and I can't find anything online about it. He wants to take his own sandboxed build and disable sandboxing/notarization/codesigning on it (POSTFACTO) for testing some issue he's working on. I spent a half hour on the phone trying to understand why, but I still don't get it. Crazy or not, it's an interesting question, so I thought I'd float it here.
3
0
7.3k
Feb ’22
Xcode keeps asking codesign access key while copying Swift standard libraries
Dear,While I build and run the app with swift on device, Xcopy 9.1 keeps asking codesign loign keychain password, however, it would be fine if build and run app with Objective-C. The keychain would pop a new login keychain password window forever while Xcode telling the building process on Copying Swift standard libraries.Best wishesWah Jong
0
0
808
Dec ’17
Reply to SecKey API returned: -25304 libswiftAVFoundation.dylib: unknown error -1=ffffffffffffffff error: Task failed with exit 1 signal 0
The underlying problem for me was that I codesign was requesting access to the keychain and I had to approve it before it worked.Somehow this line didn't grant codesign access when the keychain was created:security import ./osx_signing.p12 -k osx_signing.keychain -P MY_SUPER_PASSWORD -T /usr/bin/codesignActually with Sierra, even doing this still causes codesign to trigger a pop-up the very first time it is run. 🙂security import ./osx_signing.p12 -k osx_signing.keychain -P MY_SUPER_PASSWORD -A
Oct ’16
Reply to macOS 26 Launch Constraints
Thanks for the feedback! No launch constraints in the codesign output, and the codesigning matches between app and daemon. I moved the app to /Applications and the issue persists. Alas, I'm still confused...
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’25
Reply to Notarisation invalidated with Drag & Drop or Copy & Paste in Finder
Sorry, wrong files attached, and I don't see how I could edit the post! Here are the correct ones you requested: codesign-bad-case.txt codesign-good-case.txt
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Feb ’23
Reply to macOS 10.15.4: The signature could not be validated because AMFI could not load its entitlements for validation
We're having the same problem, with seemingly no sollution.We're trying to codesign an app for MacOS made with Unity, we follow the following guide to do so:https://docs.unity3d.com/Manual/HOWTO-PortToAppleMacStore.htmlBut as soon as we codesign the .app file, we get the same error message in our system.logThe signature could not be validated because AMFI could not load its entitlements for validation: entitlements cannot be parsedThe .app works fine before codesigning, you'll have to circumvent Apple's gatekeeper but it launces.After codesigning it just completely fails to start.
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’20
HI guys I had an error in Xcode 10. Command CodeSign failed with nonzero exit code
To be specific it is related to vuforia framework./Users/jagruth/Library/Developer/Xcode/DerivedData/Unity-iPhone-cnaqgnyaxmxsgrcjphmxndjruogs/Build/Products/ReleaseForRunning-iphoneos/ArSample11.app/Frameworks/Vuforia.framework: errSecInternalComponentCommand CodeSign failed with a nonzero exit code
Replies
3
Boosts
0
Views
23k
Activity
Jul ’18
Reply to Notarization enable hardened runtime error
If you are callind codesign manually, it means you are resigning the app after Xcode already signed it. If you want to resign it, you have to do it properly, and pass the entitlements file to the codesign command too.
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’20
App is damaged and can't be opened, despite being codesigned
I have a toy application that uses CMake to generate a .dmg that contains a simple c++ binary that prints codesignTest. The binary gets signed by CMake, and I manually sign the .dmg. I am using the Unix Makefiles generator, and am signing with a Developer ID Application certificate with a Private Key. Despite this, I still get an App is damaged and can't be opened error when running the binary on a secondary test MacOS machine. I've created a github repository with instructions on how to reproduce this problem, and I've copy/pasted the binary's signature below. Is there anything invalid with my signature? Thank you. cisl-ridgeland:~ pearse$ codesign -dv --verbose=4 /Applications/codesignTest.app/Contents/MacOS/codesignTest Executable=/Applications/codesignTest.app/Contents/MacOS/codesignTest Identifier=codesignTest Format=bundle with Mach-O thin (arm64) CodeDirectory v=20400 size=496 flags=0x0(none) hashes=10+2 location=embedded VersionPlatform=1 VersionMin=786432 VersionSDK=787200 Hash type=sha256 s
Replies
3
Boosts
0
Views
1.9k
Activity
Nov ’23
Mac App Launch error after Mac codesign with --options runtime
hi, team, we used the py2app to build the mac app, the app works well before the codesign. But when I codesign it with the --options runtime the app can't startup. with the below error: /petoi-mac-app/Petoi Desktop App.app/Contents/MacOS/Petoi Desktop App ; exit; Traceback (most recent call last): File /Petoi Desktop App.app/Contents/Resources/__boot__.py, line 147, in _setup_ctypes() File /petoi-mac-app/Petoi Desktop App.app/Contents/Resources/__boot__.py, line 140, in _setup_ctypes from ctypes.macholib import dyld File , line 983, in _find_and_load File , line 967, in _find_and_load_unlocked File , line 668, in _load_unlocked File , line 638, in _load_backward_compatible File ctypes/__init__.pyc, line 551, in File ctypes/__init__.pyc, line 273, in _reset_cache MemoryError 2024-02-21 19:57:09.168 Petoi Desktop App[93968:1375266] Launch error 2024-02-21 19:57:09.168 Petoi Desktop App[93968:1375266] Launch error See the py2app website for debugging launch issues But if I removed the --optio
Replies
1
Boosts
0
Views
733
Activity
Feb ’24
Reply to Upload to TestFlight using Transporter
codesign did the job.
Replies
Boosts
Views
Activity
Feb ’24
codesign command failed - Requirement syntax error - unexpected token
I am trying to distribute my Unity app to test flight. Build works on iPhone locally, archiving also works but when I start distribution to test flight I get this Error codesign command failed (/var/folders/gn/ql1bht8j2z7b18b3xtt0j7rr0000gn/T/XcodeDistPipeline.~~~2gmyFJ/Root/Payload/TondoJigsaw2.app/Frameworks/UnityFramework.framework: replacing existing signature /var/folders/gn/ql1bht8j2z7b18b3xtt0j7rr0000gn/T/XcodeDistPipeline.~~~2gmyFJ/Root/Payload/TondoJigsaw2.app/Frameworks/UnityFramework.framework: invalid or corrupted code requirement(s) Requirement syntax error(s): line 1:152: unexpected token: sQuaricon ) I am not sure what is the problem Team name is: “sQuaricon” Name Surname s.p. Bundle ID is: com.Squaricon.TondoJigsaw2 When I change bundle ID to com.testasd.TondoJigsaw2 (I do this in Xcode before archiving) that error disappears and I reach the part where I have to pick language. Even though this is not the solution, I think it is interesting, it implies issue might be with Bundle ID but
Replies
2
Boosts
0
Views
139
Activity
May ’25
SMAppService: registerAndReturnError fails with Codesigning failure loading plist code: -67054
When registering the LaunchDaemons of the application using SMAppService:registerAndReturnError, I am seeing the below error. The operation couldn’t be completed. Codesigning failure loading plist: code: -67054 Above issue is seen only on Ventura 13.0.1 and Ventura 13.1 versions. It is working fine on Ventura 13.5, Ventura 13.6 and Sonoma 14.2 as well. When I checked the system logs using sudo log stream --debug --info --predicate process in { '', 'smd', 'backgroundtaskmanagementd'} and sender in {'ServiceManagement', 'BackgroundTaskManagement', 'smd', 'backgroundtaskmanagementd'} I see below error 2024-02-27 16:02:22.382487+0530 0x4c006 Error 0x0 321 0 smd: [com.apple.libxpc.SMAppServiceShared:all] Static code signature check failed: -67054 2024-02-27 16:02:22.382500+0530 0x4c006 Error 0x0 321 0 smd: [com.apple.libxpc.SMAppServiceShared:all] Unable to validate code signature on bundle for . Code: -67054 2024-02-27 16:02:22.384288+0530 0x4c006 Error 0x0 321 0 smd: [com.apple.xpc.smd:SMAppServiceFa
Replies
1
Boosts
0
Views
911
Activity
Feb ’24
Creating codesigned AppleScript apps
In the past it was relatively easy to download from the developer portal both the app signing and installer signing certs so that I could sign AppleScripts from Script Editor when exporting them and when building packages in Jamf Composer. I went to set that up today and it seems things have changed in the last few years since I've had to set this up. I've been unable to sort this out and would love some help. I'm looking for a tutorial on doing this that walks someone step-by-step through the process for obtaining the certs (yes, I have dev account) and setting them up in keychain and then making use of them. Thanks!
Replies
1
Boosts
0
Views
181
Activity
Jun ’25
Is there any way to disable sandboxing/notarization/codesigning on an existing app? (already built)
Crazy question, but it came from a friend now working at a different company and I wanted to make sure I'm not telling him the wrong thing. I said no, but I'm not 100% sure and I can't find anything online about it. He wants to take his own sandboxed build and disable sandboxing/notarization/codesigning on it (POSTFACTO) for testing some issue he's working on. I spent a half hour on the phone trying to understand why, but I still don't get it. Crazy or not, it's an interesting question, so I thought I'd float it here.
Replies
3
Boosts
0
Views
7.3k
Activity
Feb ’22
Xcode keeps asking codesign access key while copying Swift standard libraries
Dear,While I build and run the app with swift on device, Xcopy 9.1 keeps asking codesign loign keychain password, however, it would be fine if build and run app with Objective-C. The keychain would pop a new login keychain password window forever while Xcode telling the building process on Copying Swift standard libraries.Best wishesWah Jong
Replies
0
Boosts
0
Views
808
Activity
Dec ’17
Reply to SecKey API returned: -25304 libswiftAVFoundation.dylib: unknown error -1=ffffffffffffffff error: Task failed with exit 1 signal 0
The underlying problem for me was that I codesign was requesting access to the keychain and I had to approve it before it worked.Somehow this line didn't grant codesign access when the keychain was created:security import ./osx_signing.p12 -k osx_signing.keychain -P MY_SUPER_PASSWORD -T /usr/bin/codesignActually with Sierra, even doing this still causes codesign to trigger a pop-up the very first time it is run. 🙂security import ./osx_signing.p12 -k osx_signing.keychain -P MY_SUPER_PASSWORD -A
Replies
Boosts
Views
Activity
Oct ’16
Reply to Keychain Access
I was able to resolve codesign not accepting any password issue by: reset your mac login password to the same password logout and log back in codesign now accepts the login password
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’23