Search results for

“codesign”

3,221 results found

Post

Replies

Boosts

Views

Activity

codesign command fails with errSecInternalComponent
I’m facing the dreaded codesign command fails with 'errSecInternalComponent' and looking for some guidance. I have removed the “Apple World Wide Developer Relations Authority” certificate that expired in 2023 from both the Login and System Keychain and have downloaded the latest intermediate certificates I found. I have verified all the Trust Settings are configured to “Use System Default”. I did the basic codesign check suggested in an earlier post [https://forums.developer.apple.com/forums/thread/712005]: % security find-identity -p codesigning Policy: Code Signing Matching identities 675CE18312BFBE2735918BA897908D20DB0A774D Apple Development: Peter Sichel (537G2NTM55) 1 identities found Valid identities only 675CE18312BFBE2735918BA897908D20DB0A774D Apple Development: Peter Sichel (537G2NTM55) 1 valid identities found % cp /usr/bin/true MyTrue % codesign -s Apple Development -f MyTrue MyTrue: replacing existing signature MyTrue: errSecInternalComponent —— It seems I’m sti
4
0
934
Aug ’24
How to codesign extra dylibs in framework
Hi,I have a Framework with multiple dylibs: a 'main' dylib and several plugin dylibs, used in an App. When building and installing the app, the Framework is codesigned by XCode. However, only the main dylib is, but the other dylibs aren't. I need to codesign them by hand or they won't load when the app is running.How can I convince XCode to codesign every binary/dylib in the Framework? Is there a switch for this? Do I need to add some keys to Info.plist? Thanks,Markus
0
0
545
Jun ’15
Codesign login password
Xcode is prompting I enter a codesign login password when I am archiving my project. My password seems incorrect since there is no action after I enter my password and tap allow. what could be the problem?
Topic: Code Signing SubTopic: General
1
0
140
Mar ’25
After codesigning, validation fails
After a lot of googling, I'm still unable to find an answer. We are building our product within Azure Pipelines with macOS hosts. After the pipeline is done, we get corrupted packages out of it. I could reproduce it locally with 12.3.1. As you can see below, after overwriting the code sign, it fails to validate. Anyone got any idea how this can happen? Btw, we don't have any embedded bundles, same result without --deep, the notarization reports on the same file: The signature of the binary is invalid. # Force to override any codesign codesign --force --deep --sign xxx --timestamp --options=runtime xxx.app # Verify the codesign codesign -vvv --deep --strict xxx.app xxx.app: a sealed resource is missing or invalid file modified: /Users/xxx/Desktop/xxx.app/Contents/MacOs/xxx Only one file is having this issue, that is the main binary that is specified in the Info.plist as the startup program.
4
0
1.1k
Apr ’22
codesign and text files
We are building an open source, electron-based application and using electron-builder's code signing support to sign our application (that is distributed outside of the App Store). Unfortunately, we seem to have hit an impasse due to what appears to be a limitation (or bug) of the underlying Apple codesign utility. Our application bundles a couple of other open source projects installed versions inside of it. These applications, as well as our own, include TXT files mixed in with binary files and at least a couple of them cannot me separated from the binary directory. If codesign does not sign text files, why not just have a mechanism to skip over the text file (printing a warning if you must) and allow electron-builder's code signing process to continue?
1
0
1.2k
Jul ’21
Codesign by bash script
My question is simple (I am hoping): why I am perfectly able to codesign the app bundle form Terminal yet it fails when running from the bash script with error The specified item could not be found in the keychain.? Any clue where to look at will be appreciated!
1
0
743
Feb ’21
Codesign app error
I build electron app in terminal and sign with command codesign --sign 4E65B...A236D4 --force --timestamp --options runtime --entitlements entitlements.plist /var/folders/dg/.../locale.pak (... - for short) End get warning: unable to build chain to self-signed root for signer Developer ID Application: **** (*****) What does this error mean? Keychain contains a certificate Developer ID Application and it is blue. Please, help.
0
0
530
Dec ’20
codesign error - No such file or directory
I'm having a problem with codesign for output from Pyinstaller The files are in ~/PycharmProjects/ALP_Document_Factory_II That folder contains the icon file, the entitlement file, and also contains a dist folder where Pyinstaller places the app file (ALP_Document_Factory_II.app) The generated app works and runs when I double click it. When I run codesign: codesign -s xxxxxxxx -f --entitlements entitlements.plist -o runtime dist/ALP_Document_Factory_II.app (xxxxxxx is where I place the hash of my credential) I get the following error message: No such file or directory Here is the Terminal copy... minus my Hash dickl45@Dicks-iMac3 ALP_Document_Factory_II % codesign -s xxxxxxxxxx -f --entitlements entitlements.plist -o runtime dist/ALP_Document_Factory_II.app dist/ALP_Document_Factory_II.app: No such file or directory Earlier I was able to use codesign and notarytool, but I must be doing something wrong that I can't see. Yours baffled MacOs 15.2
4
0
598
Jan ’25
Suddenly a CodeSign error
If I try to build my OS App I get now the following error under xCode8 (Version 8.0 (8A218a)), OS 10.12:CodeSign (build)/Debug/Rasche`s Spiele 4 Deb.app cd /Users/uwerasche/Skat7.0Arbeit export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocateSigning Identity: Mac Developer: Uwe Rasche (E5GCC924JS) /usr/bin/codesign --force --sign F880090B18B8505522818578274D7F157BE0D45E --deep --timestamp=none /Users/uwerasche/Skat7.0Arbeit/(build)/Debug/Rasche`s Spiele 4 Deb.app/Users/uwerasche/Skat7.0Arbeit/(build)/Debug/Rasche`s Spiele 4 Deb.app: resource fork, Finder information, or similar detritus not allowedCommand /usr/bin/codesign failed with exit code 1What had I do?- I look to the certification, replace all, delete in Xcode8 my developer information, delete the destination folder (in my Xcode is the menu item „clean build folder“ disabled, but for a test project it is enabled.)1. Step: Under OS 10.11.6 xCode8 can si
0
0
474
Sep ’16
macdeployqt codesign verification error
I'm using macdeployqt with codesigning. At the end of deploying, macdeployqt fails codesign verification: ERROR: codesign verification error: ERROR: strawberry.app: code has no resources but signature indicates they must be presentnIn subcomponent: /Users/jonas/Projects/strawberry/build/strawberry.app/Contents/Frameworks/QtGui.frameworkn Same thing happens when running codsign verification manually after macdeployqt is finished: jonas@ni214 build % codesign --deep -v strawberry.app strawberry.app: code has no resources but signature indicates they must be present In subcomponent: /Users/jonas/Projects/strawberry/build/strawberry.app/Contents/Frameworks/QtGui.framework The file structure looks like this: jonas@ni214 build % find strawberry.app/Contents/Frameworks/QtGui.framework strawberry.app/Contents/Frameworks/QtGui.framework strawberry.app/Contents/Frameworks/QtGui.framework/Resources strawberry.app/Contents/Frameworks/QtGui.framework/Versions strawberry.app/Contents/Fra
5
0
1.4k
Oct ’23
Apple codesigning key in git
I'm planning on open sourcing my app but my codesigning keys are in a bash script in GitHub. I knew this was a bad idea but I originally intended on not opening up my app so it didn't matter (the repo is private). There's a git command to easily remove the file from all commits but I don't want to do this if unnecessary. Is having the codesigning key (3rd Party Mac Developer Application: ()) in the public a problem? I'd hate to lose this script due to not having it stored in git.
0
0
357
Sep ’22
CodeSign : errSecInternalComponent
I’ve been wrestling with this for nearly a week now and none of the proposed fixes have worked. I’m trying to resign an app via Jenkins and have done the following: Created a custom keychain Imported the required .p12 certificates Installed the Apple WWDR certificate in the System keychain Made the login keychain my default Added my development keychain, the login keychain and the System keychain to the user keychain list Unlocked my development keychain Confirmed my signing identity is present Granted the appropriate partition list access to the keychain security set-key-partition-list -S apple-tool:,codesign: -k pwd /Users/ec2-user/Library/Keychains/development.keychain-db Yet when I invoke Fastlane’s resign action, I still see: _floatsignTemp/Payload/EverMerge.app/Frameworks/AppLovinSDK.framework: replacing existing signature _floatsignTemp/Payload/EverMerge.app/Frameworks/AppLovinSDK.framework: errSecInternalComponent Encountered an error, aborting! Any guidance on what might be causing this errS
1
0
171
May ’25
codesign seg fault
Hi, getting seg faults every time I try and sign my apps with the codesign -f -s Developer ID Application command.I've recently upgraded to Sierra and my membership has renewed so I had to renew my certs - unfortunately both of these happened at the same time so I'm not sure which may have contributed to the issue...Anyone else seeing these issues? thx
0
0
485
Apr ’17
Developer ID hash (codesign)
I want to sign an application that I have maintained for years. It compiles, passes its own tests, and runs without error on Mac OSX. It is a variant of an upstream project that is properly signed. I want to sign my own application, using the upstream build chain. The upstream build chain is a bash script that calls for several values to perform signing with codesign: DEVELOPER_ID= KEYCHAIN= KEYCHAIN_PASSWORD= NOTARIZATION_BUNDLE_ID= NOTARIZATION_USER= NOTARIZATION_PASSWORD= For a start, I'm stuck at DEVELOPER_ID. The value is meant to be a hash, but from the XCode documentation and various third-party explainers, I've been unable to figure out how to acquire that value. In codesign, the upstream script applies it like so: /usr/bin/codesign --force --options runtime --entitlements $entitlements_file --sign $DEVELOPER_ID <path_to_application> (The entitlements file is provided in the source.) I don't have any experience working in XCode, and I've been unable to solve this pr
1
0
1.3k
Mar ’23
codesign/produtsign 3rd paty TSAs
Hi , I've couple of questions relate to timestamp server used for codesign and productsign commands. Can I use any timestamp server with codesign command? If yes, can you please share list of trusted TSAs? Also, will notarization succeed if I use non-apple timestamp server? codesign -fs ${identity} TestApp.app --timestamp=${timestampServer} How do I specify a timestamp server in productsign command?
4
0
1.3k
Feb ’21
codesign command fails with errSecInternalComponent
I’m facing the dreaded codesign command fails with 'errSecInternalComponent' and looking for some guidance. I have removed the “Apple World Wide Developer Relations Authority” certificate that expired in 2023 from both the Login and System Keychain and have downloaded the latest intermediate certificates I found. I have verified all the Trust Settings are configured to “Use System Default”. I did the basic codesign check suggested in an earlier post [https://forums.developer.apple.com/forums/thread/712005]: % security find-identity -p codesigning Policy: Code Signing Matching identities 675CE18312BFBE2735918BA897908D20DB0A774D Apple Development: Peter Sichel (537G2NTM55) 1 identities found Valid identities only 675CE18312BFBE2735918BA897908D20DB0A774D Apple Development: Peter Sichel (537G2NTM55) 1 valid identities found % cp /usr/bin/true MyTrue % codesign -s Apple Development -f MyTrue MyTrue: replacing existing signature MyTrue: errSecInternalComponent —— It seems I’m sti
Replies
4
Boosts
0
Views
934
Activity
Aug ’24
How to codesign extra dylibs in framework
Hi,I have a Framework with multiple dylibs: a 'main' dylib and several plugin dylibs, used in an App. When building and installing the app, the Framework is codesigned by XCode. However, only the main dylib is, but the other dylibs aren't. I need to codesign them by hand or they won't load when the app is running.How can I convince XCode to codesign every binary/dylib in the Framework? Is there a switch for this? Do I need to add some keys to Info.plist? Thanks,Markus
Replies
0
Boosts
0
Views
545
Activity
Jun ’15
Codesign login password
Xcode is prompting I enter a codesign login password when I am archiving my project. My password seems incorrect since there is no action after I enter my password and tap allow. what could be the problem?
Topic: Code Signing SubTopic: General
Replies
1
Boosts
0
Views
140
Activity
Mar ’25
After codesigning, validation fails
After a lot of googling, I'm still unable to find an answer. We are building our product within Azure Pipelines with macOS hosts. After the pipeline is done, we get corrupted packages out of it. I could reproduce it locally with 12.3.1. As you can see below, after overwriting the code sign, it fails to validate. Anyone got any idea how this can happen? Btw, we don't have any embedded bundles, same result without --deep, the notarization reports on the same file: The signature of the binary is invalid. # Force to override any codesign codesign --force --deep --sign xxx --timestamp --options=runtime xxx.app # Verify the codesign codesign -vvv --deep --strict xxx.app xxx.app: a sealed resource is missing or invalid file modified: /Users/xxx/Desktop/xxx.app/Contents/MacOs/xxx Only one file is having this issue, that is the main binary that is specified in the Info.plist as the startup program.
Replies
4
Boosts
0
Views
1.1k
Activity
Apr ’22
codesign and text files
We are building an open source, electron-based application and using electron-builder's code signing support to sign our application (that is distributed outside of the App Store). Unfortunately, we seem to have hit an impasse due to what appears to be a limitation (or bug) of the underlying Apple codesign utility. Our application bundles a couple of other open source projects installed versions inside of it. These applications, as well as our own, include TXT files mixed in with binary files and at least a couple of them cannot me separated from the binary directory. If codesign does not sign text files, why not just have a mechanism to skip over the text file (printing a warning if you must) and allow electron-builder's code signing process to continue?
Replies
1
Boosts
0
Views
1.2k
Activity
Jul ’21
Codesign by bash script
My question is simple (I am hoping): why I am perfectly able to codesign the app bundle form Terminal yet it fails when running from the bash script with error The specified item could not be found in the keychain.? Any clue where to look at will be appreciated!
Replies
1
Boosts
0
Views
743
Activity
Feb ’21
Codesign app error
I build electron app in terminal and sign with command codesign --sign 4E65B...A236D4 --force --timestamp --options runtime --entitlements entitlements.plist /var/folders/dg/.../locale.pak (... - for short) End get warning: unable to build chain to self-signed root for signer Developer ID Application: **** (*****) What does this error mean? Keychain contains a certificate Developer ID Application and it is blue. Please, help.
Replies
0
Boosts
0
Views
530
Activity
Dec ’20
codesign error - No such file or directory
I'm having a problem with codesign for output from Pyinstaller The files are in ~/PycharmProjects/ALP_Document_Factory_II That folder contains the icon file, the entitlement file, and also contains a dist folder where Pyinstaller places the app file (ALP_Document_Factory_II.app) The generated app works and runs when I double click it. When I run codesign: codesign -s xxxxxxxx -f --entitlements entitlements.plist -o runtime dist/ALP_Document_Factory_II.app (xxxxxxx is where I place the hash of my credential) I get the following error message: No such file or directory Here is the Terminal copy... minus my Hash dickl45@Dicks-iMac3 ALP_Document_Factory_II % codesign -s xxxxxxxxxx -f --entitlements entitlements.plist -o runtime dist/ALP_Document_Factory_II.app dist/ALP_Document_Factory_II.app: No such file or directory Earlier I was able to use codesign and notarytool, but I must be doing something wrong that I can't see. Yours baffled MacOs 15.2
Replies
4
Boosts
0
Views
598
Activity
Jan ’25
Suddenly a CodeSign error
If I try to build my OS App I get now the following error under xCode8 (Version 8.0 (8A218a)), OS 10.12:CodeSign (build)/Debug/Rasche`s Spiele 4 Deb.app cd /Users/uwerasche/Skat7.0Arbeit export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocateSigning Identity: Mac Developer: Uwe Rasche (E5GCC924JS) /usr/bin/codesign --force --sign F880090B18B8505522818578274D7F157BE0D45E --deep --timestamp=none /Users/uwerasche/Skat7.0Arbeit/(build)/Debug/Rasche`s Spiele 4 Deb.app/Users/uwerasche/Skat7.0Arbeit/(build)/Debug/Rasche`s Spiele 4 Deb.app: resource fork, Finder information, or similar detritus not allowedCommand /usr/bin/codesign failed with exit code 1What had I do?- I look to the certification, replace all, delete in Xcode8 my developer information, delete the destination folder (in my Xcode is the menu item „clean build folder“ disabled, but for a test project it is enabled.)1. Step: Under OS 10.11.6 xCode8 can si
Replies
0
Boosts
0
Views
474
Activity
Sep ’16
macdeployqt codesign verification error
I'm using macdeployqt with codesigning. At the end of deploying, macdeployqt fails codesign verification: ERROR: codesign verification error: ERROR: strawberry.app: code has no resources but signature indicates they must be presentnIn subcomponent: /Users/jonas/Projects/strawberry/build/strawberry.app/Contents/Frameworks/QtGui.frameworkn Same thing happens when running codsign verification manually after macdeployqt is finished: jonas@ni214 build % codesign --deep -v strawberry.app strawberry.app: code has no resources but signature indicates they must be present In subcomponent: /Users/jonas/Projects/strawberry/build/strawberry.app/Contents/Frameworks/QtGui.framework The file structure looks like this: jonas@ni214 build % find strawberry.app/Contents/Frameworks/QtGui.framework strawberry.app/Contents/Frameworks/QtGui.framework strawberry.app/Contents/Frameworks/QtGui.framework/Resources strawberry.app/Contents/Frameworks/QtGui.framework/Versions strawberry.app/Contents/Fra
Replies
5
Boosts
0
Views
1.4k
Activity
Oct ’23
Apple codesigning key in git
I'm planning on open sourcing my app but my codesigning keys are in a bash script in GitHub. I knew this was a bad idea but I originally intended on not opening up my app so it didn't matter (the repo is private). There's a git command to easily remove the file from all commits but I don't want to do this if unnecessary. Is having the codesigning key (3rd Party Mac Developer Application: ()) in the public a problem? I'd hate to lose this script due to not having it stored in git.
Replies
0
Boosts
0
Views
357
Activity
Sep ’22
CodeSign : errSecInternalComponent
I’ve been wrestling with this for nearly a week now and none of the proposed fixes have worked. I’m trying to resign an app via Jenkins and have done the following: Created a custom keychain Imported the required .p12 certificates Installed the Apple WWDR certificate in the System keychain Made the login keychain my default Added my development keychain, the login keychain and the System keychain to the user keychain list Unlocked my development keychain Confirmed my signing identity is present Granted the appropriate partition list access to the keychain security set-key-partition-list -S apple-tool:,codesign: -k pwd /Users/ec2-user/Library/Keychains/development.keychain-db Yet when I invoke Fastlane’s resign action, I still see: _floatsignTemp/Payload/EverMerge.app/Frameworks/AppLovinSDK.framework: replacing existing signature _floatsignTemp/Payload/EverMerge.app/Frameworks/AppLovinSDK.framework: errSecInternalComponent Encountered an error, aborting! Any guidance on what might be causing this errS
Replies
1
Boosts
0
Views
171
Activity
May ’25
codesign seg fault
Hi, getting seg faults every time I try and sign my apps with the codesign -f -s Developer ID Application command.I've recently upgraded to Sierra and my membership has renewed so I had to renew my certs - unfortunately both of these happened at the same time so I'm not sure which may have contributed to the issue...Anyone else seeing these issues? thx
Replies
0
Boosts
0
Views
485
Activity
Apr ’17
Developer ID hash (codesign)
I want to sign an application that I have maintained for years. It compiles, passes its own tests, and runs without error on Mac OSX. It is a variant of an upstream project that is properly signed. I want to sign my own application, using the upstream build chain. The upstream build chain is a bash script that calls for several values to perform signing with codesign: DEVELOPER_ID= KEYCHAIN= KEYCHAIN_PASSWORD= NOTARIZATION_BUNDLE_ID= NOTARIZATION_USER= NOTARIZATION_PASSWORD= For a start, I'm stuck at DEVELOPER_ID. The value is meant to be a hash, but from the XCode documentation and various third-party explainers, I've been unable to figure out how to acquire that value. In codesign, the upstream script applies it like so: /usr/bin/codesign --force --options runtime --entitlements $entitlements_file --sign $DEVELOPER_ID <path_to_application> (The entitlements file is provided in the source.) I don't have any experience working in XCode, and I've been unable to solve this pr
Replies
1
Boosts
0
Views
1.3k
Activity
Mar ’23
codesign/produtsign 3rd paty TSAs
Hi , I've couple of questions relate to timestamp server used for codesign and productsign commands. Can I use any timestamp server with codesign command? If yes, can you please share list of trusted TSAs? Also, will notarization succeed if I use non-apple timestamp server? codesign -fs ${identity} TestApp.app --timestamp=${timestampServer} How do I specify a timestamp server in productsign command?
Replies
4
Boosts
0
Views
1.3k
Activity
Feb ’21