Search results for

“codesign”

3,223 results found

Post

Replies

Boosts

Views

Activity

codesign error : unable to build chain to self-signed root for signer
I want to codesign our development on macOS Monterey, but I get the following error: % sudo codesign --deep -vvv --timestamp --strict --force --verify --verbose = 4 --sign Developer ID Application: ZZZZZZZZZZ, Inc. (ZZZZZZZZZZ) AAAAA.framework Warning: unable to build chain to self-signed root for signer Developer ID Application: ZZZZZZZZZZ, Inc. (ZZZZZZZZZZ) AAAAA.framework: errSecInternalComponent In subcomponent: /Users/XXXXX/AAAAA.framework/Versions/Current/Frameworks/BBBBBB.dylib If I check Developer ID Application: ZZZZZZZZZZ, Inc. (ZZZZZZZZZZ) in Keychain Access, It says This certificate is valid. Download and install Apple Root Certificates and Apple Intermediate certificates from the following websites. https://www.apple.com/certificateauthority/ If I enter apple or developer id cert in the search window at the top right of the Keychain Access screen, The same certificate downloaded and installed above but with Keychain System Roots will be detected. Is it correct that the same cert
2
0
3.3k
Jul ’22
Error: Command CodeSign failed with a nonzero exit code.
Briefly since downloading and installing Xcode 10 beta 5 I have not been able to get any Provisional Profiles to work. In fact, my application fails immediately with the following error message.Error: Command CodeSign failed with a nonzero exit code.Interestingly, when I switch on the Automatically manage signing option Xcode generates certificates. However Provisional Profiles can't seem to find certificates.Honestly, I have tried manually creating certificates as well as profiles with no luck. I have been trying to find a solution since downloading the beta version yesterday.I would greatly appreciate any feedback and or suggestions for possible solutions.Thank you for your time.
1
0
5.1k
Aug ’18
Xcodebuild codesign error
HI ^ ^I got code signerror when I build a project by Xcodebuild....But My app is well-installed and run on iPad...I typed as below.. xcodebuild -target TwitiPad-New -scheme TwitiiPadNew -configuration Debug -sdk iphonesimulatorProject name is TwitiPad, TwitiPad-New is target name, TwitiPadNew is scheme name ...and I got message as below..=== BUILD TARGET TwitiPad OF PROJECT TwitiPad WITH CONFIGURATION Debug ===Check dependenciesCode Sign error: No matching provisioning profiles found: No provisioning profiles with a valid signing identity (i.e. certificate and private key pair) were found.** BUILD FAILED **what is problem..?how to fix this ?
0
0
689
Jan ’16
No codesigning identities (i.e. certificate and private key pairs) ...
Ever since I joined more than 1 team, I am experiencing signing issues.From my own personal team, I am able to sign my own projects ok, but when trying to upload or validate even those, I am getting:Xcode 6 App Store submission fails with “Your account already has a valid iOS distribution certificate”For the other teams, that I am on, and in one case an admin, I get this when I just try to build an archive in XCode:Code Sign error: No codesigning identities found: No codesigning identities (i.e. certificate and private key pairs) that match the provisioning profile specified in your build settings (“Otezla PsO”) were found.Even using Airsign, to resign apps, it has never worked to resign an app. 1. In order to support othe teams, I am suspecting that my keytool does not have the proper passwords in it for the certs, how can I verify that (for all teams) ?2. How does one manage multiple teams properly without these issues ?Thanks - payment will be made with cookies.
1
0
4.1k
Jan ’16
codesign repeatedly asks for access to System Keychain
I'm trying to migrate the scripts that build my application from an Intel Mac running Mojave (Xcode 10.3) to an M1 Mac running Big Sur (Xcode 12.5.1). On the M1 Mac, codesign triggers a pop up a window asking for an admin username/password each time it signs something. This happens whether it is invoked via a script or directly in Terminal. The pop-up appears twice when signing a Universal binary, once when signing a single-architecture binary. The popup says: macOS wants to make changes. Enter an adminstrator's name and password to allow this. macOS wants to use the System keychain. and it has a Deny button and an Allow button, but not an Always Allow button. (Another issue: the username is not pre-populated, even though I am logged in as an admin.) My Developer ID Application certificate is stored in my login keychain, as is the Apple Worldwide Developer Relations Certification Authority certificate, which expires 2030-02-19. The System keychain contains an Apple Application Integration Certificati
9
0
18k
Aug ’21
XCFramework codesign verification fails, because macOS temporary files appear inside
At my current company we have an app that has a lot of third party dependencies. Recently vendors started providing code signed XCFrameworks and we would like to use the code signed frameworks without any modification in our released app (don't tamper with the signature, don't remove it, don't resign it). We have a problem, that upon downloading the XCFrameworks from an internal artifact server or upon moving the XCFrameworks on disk during the build process, macOS starts producing temporary files, like .DS_Store, ._* files (for every file X, there is additional ._X file created). Files like this are sometimes called turdfiles, like here. The files are produced inside of XCFrameworks and inside of the _CodeSignature folder, making codesign --verify --verbose=4 Example.xcframework fail and XCode to complain and fail the build process. I wrote a script that cleans up the _CodeSignature folder from all known turdfiles and then inspects the output of codesign to indentify all surplus files and r
0
0
1.1k
May ’24
Command /usr/bin/codesign failed with exit code 1
Hi there! I'm a visual artist, and I am trying my darnedest to create a sticker pack for iMessage. I have a brand new, up to date iMac with the newest Xcode installed. I created my sticker pack, but when I tried to test it on my iphone, I got the error message Command /usr/bin/codesign failed with exit code 1Every subsequent time I tried to run it, whether on my phone or in the simulator, the build failed and I get the same message. Does anyone have any idea what this means or what I can do to fix it?Thank you!!
1
0
437
Nov ’16
"codesign wants to access keychain" Always allow does not work
I've recently updated to XCode 11, this now prompts me to enter my password every time I run a build from XCode, I am using a machine as an automated build agent. Typing my password and pressing Always allow does make the prompt go away, but it keeps getting prompted afterwards on each build. This is breaking my automated build process.It seems like it doesn't remember to Always Allow codesign to access keychain. Any help would be greatly appreciated.
1
0
2.9k
Dec ’19
Codesign reports "Private key missing" for my certs after a reinstall
Thanks to APFS fun, I've had to reinstall from a blank slate here. I re-downloaded my developer certs and added them to my keychain (and they show up there under Certificates), but codesign reports that the private key is missing.Given that I have downloaded my certs from the developer.apple.com site, and there is no error reported when I add them to the keychain, what am I missing that could cause this error?
0
0
578
Jan ’19
Trying to track down why codesign is now failing certain files
App is built using jdk21, jpackage to create dmg, pulls in the needed jre. Been working fine until about a week ago when notarize start failing bad signing, which when examined it's complaining modified files - a handful of jre license and copyright text files. DMGs built, signed and notarised successfully are now failing codesign verification. Has a macOS 15.1.1 release or Xcode 16.1 patched something, is there new behaviour to be aware of plse?
Topic: Code Signing SubTopic: General
2
0
481
Dec ’24
codesign passes, spctl passes, but won't launch
I've got an app that has to be build on an older version of the OS, but I codesign on 10.11 (or 10.10) to make it happy with the new version of the signatures. The app does not go to the app store but is distributed directly from my website.On my 10.11.3 machine, I run the codesign:codesign --deep --force -s Developer ID Application: MY_NAME --verbose=2 MyApp.app/MyApp.app/: replacing existing signatureMyApp.app/: signed bundle with Mach-O thin (i386) [com.yadda.yadda]All good well. I then check it:codesign --verify --deep --verbose=4 --strict MyApp.app/MyApp.app/: valid on diskMyApp.app/: satisfies its Designated Requirementspctl --verbose=4 --assess --type execute MyApp.app/MyApp.app/: acceptedsource=Developer IDAll seems good there, right? Yet, double-clicking on it gives the dreaded unidentified developer error message. Any ideas?Craig
2
0
1.7k
Jan ’16
Please help me to fix this issue "Command CodeSign failed with a nonzero exit code"
CodeSign /var/root/Library/Developer/Xcode/DerivedData/abcapp-fmkbgfeiorngdjffzwibxprwfwmy/Build/Products/Debug-iphoneos/abc abc.app (in target 'abc app' from project 'abc app') cd /Users/gurjeetsingh/Downloads/abcapp/platforms/ios export CODESIGNALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesignallocate Signing Identity: Apple Development: Gurjeet Singh (M9FLJK832D) Provisioning Profile: iOS Team Provisioning Profile: com.abc.app222 /usr/bin/codesign --force --sign C6811131545D78D1E94F6F0C4B7B25962D9C70AD --entitlements Warning: unable to build chain to self-signed root for signer Apple Development: Gurjeet Singh () /var/root/Library/Developer/Xcode/DerivedData/abcapp-fmkbgfeiorngdjffzwibxprwfwmy/Build/Products/Debug-iphoneos/abc.app: errSecInternalComponent Command CodeSign failed with a nonzero exit code
2
0
1.6k
Feb ’21
Command CodeSign failed with a nonzero exit code
I am having a peculiar issue with an app I am developing. I am trying to upload it onto App Store Connect but I am getting one error, and a very odd behavior. The error message I am getting is: /Users/user/Documents/GitHub/MyApp/MyApp/DerivedData/MyApp.pub/Build/Intermediates.noindex/ArchiveIntermediates/MyApp.pub/InstallationBuildProductsLocation/Applications/MyApp.pub.app: resource fork, Finder information, or similar detritus not allowed Command CodeSign failed with a nonzero exit code I have cleaned built the directory, I have removed the Derived Data, but this always gets thrown. It was working fine a few months ago, I have only just got back to working on it. The other issue I am havving, when I set to archive the app, I set the target as Any iOS Arm Device (arm64), but when it is archiving it switches to my iPhone as the target. I don't prompt it to do this, it just does it. This is very frustrating. I'm using a MacBook Air M1, with a macOS Sonoma. I updated my Xcode the other day, that's Vers
5
0
1.5k
Jun ’24
Reply to Add a checksum file to my macOS notarised app bundle
Thank you. So, as I understand: 1) we developers are obliged to codesign the bundle. 2) the codesign don't let us add our protection (as an additional checksum file). 3) the codesign can be easily violated (as I have seen my own macOS app and even the Apple apps, codesigned and notarised, cracked on some web torrent web sites). As you know, is a way to make my macOS app hacker-proof ?
Aug ’20
xCode suddenly stopped working; random codesigning request
I've been using Xcode Version 11.3.1 for years to write c++ code. Out of the blue it asked for some codesign key chain something or other. I entered in my computer login password and clicked allow, but now suddenly I can't run any code in Xcode any more (I get dubugger code 1?? I can't even get into debugging mode). I try to compile the code from the terminal and then run, and I get a core dump. What is causing this and how do I fix it? As an aside, why the heck do I need to log in with my Apple ID just to ask a question?
0
0
286
Jun ’21
codesign error : unable to build chain to self-signed root for signer
I want to codesign our development on macOS Monterey, but I get the following error: % sudo codesign --deep -vvv --timestamp --strict --force --verify --verbose = 4 --sign Developer ID Application: ZZZZZZZZZZ, Inc. (ZZZZZZZZZZ) AAAAA.framework Warning: unable to build chain to self-signed root for signer Developer ID Application: ZZZZZZZZZZ, Inc. (ZZZZZZZZZZ) AAAAA.framework: errSecInternalComponent In subcomponent: /Users/XXXXX/AAAAA.framework/Versions/Current/Frameworks/BBBBBB.dylib If I check Developer ID Application: ZZZZZZZZZZ, Inc. (ZZZZZZZZZZ) in Keychain Access, It says This certificate is valid. Download and install Apple Root Certificates and Apple Intermediate certificates from the following websites. https://www.apple.com/certificateauthority/ If I enter apple or developer id cert in the search window at the top right of the Keychain Access screen, The same certificate downloaded and installed above but with Keychain System Roots will be detected. Is it correct that the same cert
Replies
2
Boosts
0
Views
3.3k
Activity
Jul ’22
Error: Command CodeSign failed with a nonzero exit code.
Briefly since downloading and installing Xcode 10 beta 5 I have not been able to get any Provisional Profiles to work. In fact, my application fails immediately with the following error message.Error: Command CodeSign failed with a nonzero exit code.Interestingly, when I switch on the Automatically manage signing option Xcode generates certificates. However Provisional Profiles can't seem to find certificates.Honestly, I have tried manually creating certificates as well as profiles with no luck. I have been trying to find a solution since downloading the beta version yesterday.I would greatly appreciate any feedback and or suggestions for possible solutions.Thank you for your time.
Replies
1
Boosts
0
Views
5.1k
Activity
Aug ’18
Xcodebuild codesign error
HI ^ ^I got code signerror when I build a project by Xcodebuild....But My app is well-installed and run on iPad...I typed as below.. xcodebuild -target TwitiPad-New -scheme TwitiiPadNew -configuration Debug -sdk iphonesimulatorProject name is TwitiPad, TwitiPad-New is target name, TwitiPadNew is scheme name ...and I got message as below..=== BUILD TARGET TwitiPad OF PROJECT TwitiPad WITH CONFIGURATION Debug ===Check dependenciesCode Sign error: No matching provisioning profiles found: No provisioning profiles with a valid signing identity (i.e. certificate and private key pair) were found.** BUILD FAILED **what is problem..?how to fix this ?
Replies
0
Boosts
0
Views
689
Activity
Jan ’16
No codesigning identities (i.e. certificate and private key pairs) ...
Ever since I joined more than 1 team, I am experiencing signing issues.From my own personal team, I am able to sign my own projects ok, but when trying to upload or validate even those, I am getting:Xcode 6 App Store submission fails with “Your account already has a valid iOS distribution certificate”For the other teams, that I am on, and in one case an admin, I get this when I just try to build an archive in XCode:Code Sign error: No codesigning identities found: No codesigning identities (i.e. certificate and private key pairs) that match the provisioning profile specified in your build settings (“Otezla PsO”) were found.Even using Airsign, to resign apps, it has never worked to resign an app. 1. In order to support othe teams, I am suspecting that my keytool does not have the proper passwords in it for the certs, how can I verify that (for all teams) ?2. How does one manage multiple teams properly without these issues ?Thanks - payment will be made with cookies.
Replies
1
Boosts
0
Views
4.1k
Activity
Jan ’16
codesign repeatedly asks for access to System Keychain
I'm trying to migrate the scripts that build my application from an Intel Mac running Mojave (Xcode 10.3) to an M1 Mac running Big Sur (Xcode 12.5.1). On the M1 Mac, codesign triggers a pop up a window asking for an admin username/password each time it signs something. This happens whether it is invoked via a script or directly in Terminal. The pop-up appears twice when signing a Universal binary, once when signing a single-architecture binary. The popup says: macOS wants to make changes. Enter an adminstrator's name and password to allow this. macOS wants to use the System keychain. and it has a Deny button and an Allow button, but not an Always Allow button. (Another issue: the username is not pre-populated, even though I am logged in as an admin.) My Developer ID Application certificate is stored in my login keychain, as is the Apple Worldwide Developer Relations Certification Authority certificate, which expires 2030-02-19. The System keychain contains an Apple Application Integration Certificati
Replies
9
Boosts
0
Views
18k
Activity
Aug ’21
XCFramework codesign verification fails, because macOS temporary files appear inside
At my current company we have an app that has a lot of third party dependencies. Recently vendors started providing code signed XCFrameworks and we would like to use the code signed frameworks without any modification in our released app (don't tamper with the signature, don't remove it, don't resign it). We have a problem, that upon downloading the XCFrameworks from an internal artifact server or upon moving the XCFrameworks on disk during the build process, macOS starts producing temporary files, like .DS_Store, ._* files (for every file X, there is additional ._X file created). Files like this are sometimes called turdfiles, like here. The files are produced inside of XCFrameworks and inside of the _CodeSignature folder, making codesign --verify --verbose=4 Example.xcframework fail and XCode to complain and fail the build process. I wrote a script that cleans up the _CodeSignature folder from all known turdfiles and then inspects the output of codesign to indentify all surplus files and r
Replies
0
Boosts
0
Views
1.1k
Activity
May ’24
Command /usr/bin/codesign failed with exit code 1
Hi there! I'm a visual artist, and I am trying my darnedest to create a sticker pack for iMessage. I have a brand new, up to date iMac with the newest Xcode installed. I created my sticker pack, but when I tried to test it on my iphone, I got the error message Command /usr/bin/codesign failed with exit code 1Every subsequent time I tried to run it, whether on my phone or in the simulator, the build failed and I get the same message. Does anyone have any idea what this means or what I can do to fix it?Thank you!!
Replies
1
Boosts
0
Views
437
Activity
Nov ’16
"codesign wants to access keychain" Always allow does not work
I've recently updated to XCode 11, this now prompts me to enter my password every time I run a build from XCode, I am using a machine as an automated build agent. Typing my password and pressing Always allow does make the prompt go away, but it keeps getting prompted afterwards on each build. This is breaking my automated build process.It seems like it doesn't remember to Always Allow codesign to access keychain. Any help would be greatly appreciated.
Replies
1
Boosts
0
Views
2.9k
Activity
Dec ’19
Codesign reports "Private key missing" for my certs after a reinstall
Thanks to APFS fun, I've had to reinstall from a blank slate here. I re-downloaded my developer certs and added them to my keychain (and they show up there under Certificates), but codesign reports that the private key is missing.Given that I have downloaded my certs from the developer.apple.com site, and there is no error reported when I add them to the keychain, what am I missing that could cause this error?
Replies
0
Boosts
0
Views
578
Activity
Jan ’19
Trying to track down why codesign is now failing certain files
App is built using jdk21, jpackage to create dmg, pulls in the needed jre. Been working fine until about a week ago when notarize start failing bad signing, which when examined it's complaining modified files - a handful of jre license and copyright text files. DMGs built, signed and notarised successfully are now failing codesign verification. Has a macOS 15.1.1 release or Xcode 16.1 patched something, is there new behaviour to be aware of plse?
Topic: Code Signing SubTopic: General
Replies
2
Boosts
0
Views
481
Activity
Dec ’24
codesign passes, spctl passes, but won't launch
I've got an app that has to be build on an older version of the OS, but I codesign on 10.11 (or 10.10) to make it happy with the new version of the signatures. The app does not go to the app store but is distributed directly from my website.On my 10.11.3 machine, I run the codesign:codesign --deep --force -s Developer ID Application: MY_NAME --verbose=2 MyApp.app/MyApp.app/: replacing existing signatureMyApp.app/: signed bundle with Mach-O thin (i386) [com.yadda.yadda]All good well. I then check it:codesign --verify --deep --verbose=4 --strict MyApp.app/MyApp.app/: valid on diskMyApp.app/: satisfies its Designated Requirementspctl --verbose=4 --assess --type execute MyApp.app/MyApp.app/: acceptedsource=Developer IDAll seems good there, right? Yet, double-clicking on it gives the dreaded unidentified developer error message. Any ideas?Craig
Replies
2
Boosts
0
Views
1.7k
Activity
Jan ’16
Please help me to fix this issue "Command CodeSign failed with a nonzero exit code"
CodeSign /var/root/Library/Developer/Xcode/DerivedData/abcapp-fmkbgfeiorngdjffzwibxprwfwmy/Build/Products/Debug-iphoneos/abc abc.app (in target 'abc app' from project 'abc app') cd /Users/gurjeetsingh/Downloads/abcapp/platforms/ios export CODESIGNALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesignallocate Signing Identity: Apple Development: Gurjeet Singh (M9FLJK832D) Provisioning Profile: iOS Team Provisioning Profile: com.abc.app222 /usr/bin/codesign --force --sign C6811131545D78D1E94F6F0C4B7B25962D9C70AD --entitlements Warning: unable to build chain to self-signed root for signer Apple Development: Gurjeet Singh () /var/root/Library/Developer/Xcode/DerivedData/abcapp-fmkbgfeiorngdjffzwibxprwfwmy/Build/Products/Debug-iphoneos/abc.app: errSecInternalComponent Command CodeSign failed with a nonzero exit code
Replies
2
Boosts
0
Views
1.6k
Activity
Feb ’21
Command CodeSign failed with a nonzero exit code
I am having a peculiar issue with an app I am developing. I am trying to upload it onto App Store Connect but I am getting one error, and a very odd behavior. The error message I am getting is: /Users/user/Documents/GitHub/MyApp/MyApp/DerivedData/MyApp.pub/Build/Intermediates.noindex/ArchiveIntermediates/MyApp.pub/InstallationBuildProductsLocation/Applications/MyApp.pub.app: resource fork, Finder information, or similar detritus not allowed Command CodeSign failed with a nonzero exit code I have cleaned built the directory, I have removed the Derived Data, but this always gets thrown. It was working fine a few months ago, I have only just got back to working on it. The other issue I am havving, when I set to archive the app, I set the target as Any iOS Arm Device (arm64), but when it is archiving it switches to my iPhone as the target. I don't prompt it to do this, it just does it. This is very frustrating. I'm using a MacBook Air M1, with a macOS Sonoma. I updated my Xcode the other day, that's Vers
Replies
5
Boosts
0
Views
1.5k
Activity
Jun ’24
Reply to Add a checksum file to my macOS notarised app bundle
Thank you. So, as I understand: 1) we developers are obliged to codesign the bundle. 2) the codesign don't let us add our protection (as an additional checksum file). 3) the codesign can be easily violated (as I have seen my own macOS app and even the Apple apps, codesigned and notarised, cracked on some web torrent web sites). As you know, is a way to make my macOS app hacker-proof ?
Replies
Boosts
Views
Activity
Aug ’20
xCode suddenly stopped working; random codesigning request
I've been using Xcode Version 11.3.1 for years to write c++ code. Out of the blue it asked for some codesign key chain something or other. I entered in my computer login password and clicked allow, but now suddenly I can't run any code in Xcode any more (I get dubugger code 1?? I can't even get into debugging mode). I try to compile the code from the terminal and then run, and I get a core dump. What is causing this and how do I fix it? As an aside, why the heck do I need to log in with my Apple ID just to ask a question?
Replies
0
Boosts
0
Views
286
Activity
Jun ’21