Search results for

“codesign”

3,222 results found

Post

Replies

Boosts

Views

Activity

Xcode 8 can't archive “Command /usr/bin/codesign failed with exit code 1” part 2
I continue to have the problem that Geezus wrote about here:https://forums.developer.apple.com/message/178039#178039And although part of the problem is resolved by KMT's suggestion toTry:execute xattr -rc . both in DerivedData directory and Project directoryThat workaround only works for me when I'm building for a simulator or attached device.But when I try to Archive so I can load to TestFlight/iTunes Conect, the origianl problem persists:resource fork, Finder information, or similar detritus not allowedCommand /usr/bin/codesign failed with exit code 1I understand the original thread is closed, but since I'm still having trouble, I hope someone can offer additional help.
10
0
4.4k
Sep ’16
Reply to Command line tools not working after notarization
codesign -dvvv give me nothing Nothing? Nothing at all? That doesn’t make any sense. Even if the code is completely unsigned, codesign will print something in that case. For example: % codesign -d -vvv --entitlements - zsign zsign: code object is not signed at all Please re-run the command and post the results you get, as I’ve illustrated above. Use a code block to make it easier to read. Also, you didn’t respond to my other question: What linker are you using to create this executable? Apple’s ld? Or something custom? Finally, posting this: Is there anyone know how to deal with it ? Please. and this: Need help still separated by 6 hours suggests that you have an unrealistic expectation as to what DevForums is. See tip 3 in Quinn’s Top Ten DevForums Tips. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Jun ’22
Reply to To validate Xcode: "in sealed resource is missing or invalid"
The final release version (7A220—straight from the Mac App Store) fails spctl too.I figured out why the codesign verification on the GM (7A218) was failing—I had accidentally added a newline to a framework header file 😕. Removed it; now codesign is happy. But spctl still fails for both versions. I emailed Apple and asked them if they'd be willing to share what they knew about which versions got compromised—hopefully that will help us out.
Sep ’15
Reply to AppleScript File not open with write permission error
Well I came across the issue which is that my .app is quarantined. But I am super confused how can my .app be properly codesigned and yet still be quarantined by Apple? I have an app called iTest.app that I downloaded from my server and made sure that it was codesigned correctly but yet it is still quarantined? I thought that having a valid code signature was the whole point of getting past Gatekeeper? MyMac-7:Downloads user$ ls -l@ iTest.apptotal 0drwxr-xr-x@ 7 user staff 238 Apr 21 08:05 Contents com.apple.quarantine 67MyiMac-7:Downloads user$ codesign --verify --deep --strict -vvvvvvv iTest.appiTest.app: valid on diskiTest.app: satisfies its Designated RequirementMyiMac-7:Downloads user$ spctl -a -t exec -vvvvvvv iTest.appiTest.app: acceptedsource=Developer IDorigin=Developer ID Application: myID
Apr ’17
Reply to How can I check the code signature for a dylib at runtime?
In my application, is it possible to check the code signature of these dylibs (i.e. like with /usr/bin/codesign)? Without using /usr/bin/codesign at runtime? Is there an API?Yes there is. Check out <Security/SecCode.h> and <Security/SecStaticCode.h>. Chance are you’ll also need a good understanding of <Security/SecRequirement.h>. Share and Enjoy — Quinn The Eskimo! Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Topic: Code Signing SubTopic: General Tags:
Dec ’15
Reply to Xcode 8 Beta error launching simulator
Thanks for the tip, that command shows that no extraneous FinderInfo is associated with the object code. The only file in the framework directory that does have FInderInfo is .DS_Store:-rw-r--r--@ 1 gds wheel 6148 Jun 15 15:37 .DS_Store com.apple.FinderInfo 32Could that be what’s tripping codesign? Seems odd...Contrary to the original poster, my project is entirely Objective-C for OS X. Other frameworks in the same project are being codesigned fine.
Jun ’16
Reply to Instruments: why? “Failed to gain authorization”
Hi there! This is most likely due to your application not being signed with a debugging entitlement. If you run: codesign -dvvv --entitlements=- — do you see get-task-allow entitlement listed in there? If not — there are a few things you should check for: — Are you signing your Release scheme build with a developer certificate? — Make sure you're not overriding CODE_SIGN_INJECT_BASE_ENTITLEMENTS build setting, it should be set to YES by default. Please let us know what's the outcome and we'll continue our investigation based on the codesign output. Kacper
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’21
Reply to Application Installer now only works on a few versions of OS
Several shell scripts that use the Apple tools. (here are the relevant commands) productsign --timestamp --sign EFI Inc $PACKAGE_DEST/OSX/MetrixApplication.pkg $PACKAGE_DEST/OSX/MetrixApplication-signed.pkg hdiutil create $CUR_SCRIPT_DIR/EFI Metrix Installer.dmg -size 600m -volname EFI Metrix Installer -fs HFS+ -srcfolder $PACKAGE_DEST codesign -f --verbose=4 --timestamp --options runtime --sign 144635ECA9CE782952012802340EF51412C1E9A0 $1 codesign -dv --verbose=4 $1
Mar ’22
Xcode 8 can't archive “Command /usr/bin/codesign failed with exit code 1” part 2
I continue to have the problem that Geezus wrote about here:https://forums.developer.apple.com/message/178039#178039And although part of the problem is resolved by KMT's suggestion toTry:execute xattr -rc . both in DerivedData directory and Project directoryThat workaround only works for me when I'm building for a simulator or attached device.But when I try to Archive so I can load to TestFlight/iTunes Conect, the origianl problem persists:resource fork, Finder information, or similar detritus not allowedCommand /usr/bin/codesign failed with exit code 1I understand the original thread is closed, but since I'm still having trouble, I hope someone can offer additional help.
Replies
10
Boosts
0
Views
4.4k
Activity
Sep ’16
Reply to Code Signing of pod very slow
Same issue here. Over 100% CPU usage as XCode codesigns for 20+ minutes.Can someone from Apple please look at this issue?
Replies
Boosts
Views
Activity
Dec ’16
Reply to Command CompileXIB failed with a nonzero exit code
Soluação https://inneka.com/programming/xcode/xcode-command-usr-bin-codesign-failed-with-exit-code-1-errsecinternalcomponent/
Replies
Boosts
Views
Activity
Nov ’19
Reply to App not Upload And Sign
Any News? codesign -s Apple Distribution -o runtime --entitlements AA.entitlements -f AA ./AA zsh: illegal hardware instruction ./AA
Replies
Boosts
Views
Activity
Nov ’21
Reply to Notarization status: Invalid
I found using the xcrun notarytool log tool that an embedded binary was not codesigned correctly. I added a code sign step for this and the notarization is fixed.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to Command line tools not working after notarization
codesign -dvvv give me nothing Nothing? Nothing at all? That doesn’t make any sense. Even if the code is completely unsigned, codesign will print something in that case. For example: % codesign -d -vvv --entitlements - zsign zsign: code object is not signed at all Please re-run the command and post the results you get, as I’ve illustrated above. Use a code block to make it easier to read. Also, you didn’t respond to my other question: What linker are you using to create this executable? Apple’s ld? Or something custom? Finally, posting this: Is there anyone know how to deal with it ? Please. and this: Need help still separated by 6 hours suggests that you have an unrealistic expectation as to what DevForums is. See tip 3 in Quinn’s Top Ten DevForums Tips. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Replies
Boosts
Views
Activity
Jun ’22
Reply to To validate Xcode: "in sealed resource is missing or invalid"
The final release version (7A220—straight from the Mac App Store) fails spctl too.I figured out why the codesign verification on the GM (7A218) was failing—I had accidentally added a newline to a framework header file 😕. Removed it; now codesign is happy. But spctl still fails for both versions. I emailed Apple and asked them if they'd be willing to share what they knew about which versions got compromised—hopefully that will help us out.
Replies
Boosts
Views
Activity
Sep ’15
Reply to AppleScript File not open with write permission error
Well I came across the issue which is that my .app is quarantined. But I am super confused how can my .app be properly codesigned and yet still be quarantined by Apple? I have an app called iTest.app that I downloaded from my server and made sure that it was codesigned correctly but yet it is still quarantined? I thought that having a valid code signature was the whole point of getting past Gatekeeper? MyMac-7:Downloads user$ ls -l@ iTest.apptotal 0drwxr-xr-x@ 7 user staff 238 Apr 21 08:05 Contents com.apple.quarantine 67MyiMac-7:Downloads user$ codesign --verify --deep --strict -vvvvvvv iTest.appiTest.app: valid on diskiTest.app: satisfies its Designated RequirementMyiMac-7:Downloads user$ spctl -a -t exec -vvvvvvv iTest.appiTest.app: acceptedsource=Developer IDorigin=Developer ID Application: myID
Replies
Boosts
Views
Activity
Apr ’17
Reply to How can I check the code signature for a dylib at runtime?
In my application, is it possible to check the code signature of these dylibs (i.e. like with /usr/bin/codesign)? Without using /usr/bin/codesign at runtime? Is there an API?Yes there is. Check out <Security/SecCode.h> and <Security/SecStaticCode.h>. Chance are you’ll also need a good understanding of <Security/SecRequirement.h>. Share and Enjoy — Quinn The Eskimo! Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Dec ’15
Reply to Xcode 8 Beta error launching simulator
Thanks for the tip, that command shows that no extraneous FinderInfo is associated with the object code. The only file in the framework directory that does have FInderInfo is .DS_Store:-rw-r--r--@ 1 gds wheel 6148 Jun 15 15:37 .DS_Store com.apple.FinderInfo 32Could that be what’s tripping codesign? Seems odd...Contrary to the original poster, my project is entirely Objective-C for OS X. Other frameworks in the same project are being codesigned fine.
Replies
Boosts
Views
Activity
Jun ’16
Reply to Instruments: why? “Failed to gain authorization”
Hi there! This is most likely due to your application not being signed with a debugging entitlement. If you run: codesign -dvvv --entitlements=- — do you see get-task-allow entitlement listed in there? If not — there are a few things you should check for: — Are you signing your Release scheme build with a developer certificate? — Make sure you're not overriding CODE_SIGN_INJECT_BASE_ENTITLEMENTS build setting, it should be set to YES by default. Please let us know what's the outcome and we'll continue our investigation based on the codesign output. Kacper
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’21
Reply to Application Installer now only works on a few versions of OS
Several shell scripts that use the Apple tools. (here are the relevant commands) productsign --timestamp --sign EFI Inc $PACKAGE_DEST/OSX/MetrixApplication.pkg $PACKAGE_DEST/OSX/MetrixApplication-signed.pkg hdiutil create $CUR_SCRIPT_DIR/EFI Metrix Installer.dmg -size 600m -volname EFI Metrix Installer -fs HFS+ -srcfolder $PACKAGE_DEST codesign -f --verbose=4 --timestamp --options runtime --sign 144635ECA9CE782952012802340EF51412C1E9A0 $1 codesign -dv --verbose=4 $1
Replies
Boosts
Views
Activity
Mar ’22
Reply to debug won't codesign, other configs will
This is almost too embarassing, but I'm going to post it anyway. In the codesign configuration screen I accidently clicked Release instead of all. I hang my head in shame
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’20
Reply to Xcode 12.5 "code signature version is no longer supported"
What’s the output of this command for your app, and any other bundles in your app (ie frameworks, app extensions, etc)? codesign -dv /path/to/MyApp.app
Replies
Boosts
Views
Activity
May ’21
Reply to Gatekeeper does not allow a bundle to run before manually running spctl --assess of contained dylib files
I've included the plug-in's file structure at the top of the question above. I've skipped just the files created by codesign and spctl.
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’20