Search results for

“codesign”

3,222 results found

Post

Replies

Boosts

Views

Activity

codesign: "A timestamp was expected but was not found"
Hello,My CI builds are failing regularly since July 1st with this codesign error: A timestamp was expected but was not found..The Mac app has a few frameworks which are properly signed, and sometimes it gets through the signing process but fails at a seemingly random code signing command with this error.I have checked and the signing certificate (Developer ID) expires in 2017. I also made sure that the CI servers had their time set automatically using the time.apple.com servers to prevent clock drift.Short of disabling timestamps with --timestamp none in the codesign command, is there anything I can do? Am I tied to Apple's timestamp servers' whims?Thanks for any insight,Philippe
7
0
10k
Jul ’15
debug won't codesign, other configs will
I am unable to get a fully codesigned debug version of my app, whilst other configurations such as the profiling build will codesign. This is obvious as it is a sandboxed app and the debug version cannot generate a bookmark for a file (Cocoa error 256) whilst the profiling version can. Other entitlements, networking and microphone, work fine on both versions. When I use codesign -v it reports that the app isn't signed at all. I use automatically managed signing and this has been working until yesterday, when I manually installed a new developer install certificate in the keychain. The actual warning is appname isn't code signed but requires entitlements. It is not possible to add entitlements to a binary without signing it. This is the entitlements file:<?xml version=1.0 encoding=UTF-8?><!DOCTYPE plist PUBLIC -//Apple//DTD PLIST 1.0//EN http://www.apple.com/DTDs/PropertyList-1.0.dtd><plist version=1.0><dict> <key>com.apple.security.app-sandbox</key&g
1
0
415
Apr ’20
CodeSign failed with nonzero exit code
I'm running 10.15 with Xcode 11.1I've got an iPad application that works, and wanted to try things out under Catalyst on my Mac. I selected Mac from the Xcode device menu and ran again, but I get an error at the end of compilationCommand CodeSign faild with nonzero exit codeI cleaned the build folder, installed a MacOS distribution certificate, but the error persists. Any ideas?
3
0
1.1k
Oct ’19
Codesign prints to stderr: workaround and bug report
First off I submitted a bug report at https://developer.apple.com/bug-reporting/Using Xcode 11.3 and command line utilities.Bug: codesign command line utility always prints to stderr.This confused me while I was trying to test that codesigning succeeded as part of a continuous integration script.NOTE that you may use the codesign return value to test success or failure.Workaround: One liner to save only stderr output from a command to a variable and print stdout:{ stderr_only=$( { codesign ${=CSVARS} $SIG $APP_NAME; } 2>&1 1>&3 3>&- ); } 3>&1; ret_val=$? echo Return val: $ret_val echo Codesign stderr only: $stderr_onlyScript to reproduce#!/bin/zsh #codesign_prints_to_stderr.sh export CSARGS=-f --verbose --timestamp -o runtime --sign #NOTE: Replace with a valid signature export SIG=Developer ID Application: Your Company (ID) #NOTE: Replace with a valid app folder export APP_NAME=TestApp.app echo codesign ${=CSARGS} $SIG $APP_NAM
2
0
1.2k
Mar ’20
codesign ask me 34 times to access
Hi guy,why Xcode ask me for many times to access the keychain and other times only ones or twice?and if I click on 'consenti' (in English 'allow') pop up other codesign prompt. I've counted there are 34 requestscome out.how can I solve this problem?these are two screenshot about problem
2
0
4.9k
Nov ’16
Xcode asks for codesign keychain pw
I can no longer build to my iphone 8 plus because I get asked for my codesign keychain access password and I apparenly do not know the pw. I was able to build to this iphone fine as of a few days ago. I am running Xcode 9 on Mac OS Sierra. IPhone is running ios 11. I can build to the simulators. Any help would be greatly appreciated. Thank sin advance Jim Allison
1
0
583
Nov ’17
new mac, codesign unknown error -1=ffffffffffffffff
just got a new mac and now i get codesign errors. the time savedby a faster CPU is now burnt up fixing weird bugs related to codesigning.whatever.app: unknown error -1=ffffffffffffffffCommand /usr/bin/codesign failed with exit code 1it would be nice if apple had a verbose mode for this codesign command so we can trace the problemrather than saying unknown errorside note: for another account, i fixed the problem by regenerating signing certs and provisioning profiles.but this is for a client and they dont like us deleting certs because it disrupts other developers.there are various hints on this topic online and i have tried a bunch of them but no progress.same error always.i can codesign on my old mac. so the provisioning is correct. just not on this mac.should i return this new one to the apple store? it's real nice, but if ican't do critical operations...what we need is a verbose codesign mode for this type of thingthis is for production / upload to test flight b
6
0
2.1k
Jul ’18
codesign use of Cloud-managed Developer ID
My non-cloud Developer ID certificate will expire soon, and my account also has a cloud-managed Developer ID Certificate. My Mac application build workflow uses Archiving, so the cloud cert should be fine for that. But my workflow also signs bundled apps, such as Sparkle framwork's Autodupate app, using the codesign tool. Is it correct that codesign only uses certificates from the local Keychain, and so cannot use a Cloud-managed Developer ID certificate? Before I manually renew the non-cloud Developer ID certificate, I want to make sure I'm not missing some easier method. Thanks.
1
0
568
Nov ’24
Xcode CI codesign issues
I'm using the latest El Capitan, and Server Beta 3 with Xcode Beta 3.The selected Xcode is configured with the proper team account that has the codesigning certificate.This was from importing a devloper profile.I also added and selected the corresponding team on the CI config screen in the Server.app.Building with the Xcode that is selected, code signs properly. However when the bot runs, it fails saying it can't find the identity.Any ideas on why the Xcode the server is configured to use code signs properly, but the bot cannot?
0
0
335
Jul ’15
codesign with entitlement is not working
I have binary application in c++ and objective c++ created not with xcode. I'm trying to sign and add entitlement that will allow the application to store certificate in keychain. When I sign the app with entitlement and try to run it crash and I see error - Code Signature Invalid. signing without the entitlement is fine. command to sign: codesign -f -s MyName -o runtime --timestamp --entitlements Here is the file: keychain-access-groups myApp Why I'm not able to add entitlement to my app ?
1
0
3.9k
Nov ’21
Xcode 10.2ß Codesign error because of detritus
I am experiencing a codesign issue when I try to build with XCode 10.2ß2, the same with ß3.I have some code that compiles fine with XCode 10.0 or with XCode 10.1ß2.When I try to compile the exact same project with XCode 10.2ß2, or ß3, I get the following error:/Users/xxxxxxxx/Library/Developer/Xcode/DerivedData/appName-bgrsgphmdtpjpwalpbfagjcpdzrc/Build/Products/Debug/appName.app: resource fork, Finder information, or similar detritus not allowedCommand CodeSign failed with a nonzero exit codeI have cleaned the attributes with xattr command in Terminal, no change.I have tried to change Swift language version, testing with unspecified, 5, 4.2 and 4. No change.
6
0
1.4k
Feb ’19
Identity findable by `security find-identity`, but not `codesign`
I am experiencing an issue with signing an application, where codesign is unable to find the identity I am referencing. I have imported a .p12 certificate into a keychain labeled build.keychain, and running security find-identity -v -p codesigning build.keychain returns 1 valid codesigning identity. When I use the unique identifier provided (the all-caps hex hash) as the signing identity for the codesign command, the command exits with the error error: The specified item could not be found in the keychain. I have tried specifying the keychain to search within (build.keychain), as well as running the command without specifying the keychain. The specific command in question is: codesign --continue --force -vvvv --keychain /Users/runner/Library/Keychains/build.keychain-db -s $SIGNER_HEX_HASH --options runtime path/to/app/App.app/Contents/Frameworks/App.framework/Versions/A My apologies if I'm missing something obvious. Most forums and posts reference cases where no va
1
0
1.2k
Apr ’23
Codesigning binaries in bundle
I am building plug-ins for audio software. I am using the JUCE framework and I am building with VScode / CMake / Ninja / LLVM I want to package the output, which are two bundles Sinensis.component (the AU plugin) and Sinensis.vst3 (the vst3 plugin) I am using this script : codesign -s Developer ID Application: $DEVELOPER_ID --timestamp --force -o runtime -i $PLUGIN_NAME.component $PLUGIN_NAME.component/Contents/MacOs/$PLUGIN_NAME #--options=runtime pkgbuild --install-location /Library/Audio/Plug-Ins/Components --sign Developer ID Installer: $DEVELOPER_ID --timestamp --identifier $IDENTIFIERau --version $VERSION --root $PLUGIN_NAME.component $PLUGIN_NAME_au.pkg codesign -s Developer ID Application: $DEVELOPER_ID --timestamp --force -o runtime -i $PLUGIN_NAME.vst3 $PLUGIN_NAME.vst3/Contents/MacOs/$PLUGIN_NAME #--options=runtime pkgbuild --install-location /Library/Audio/Plug-Ins/VST3 --sign Developer ID Installer: $DEVELOPER_ID --timestamp --identifier $IDENTIFIERvst3 --version $VERSION --root
1
0
1k
Apr ’24
Unreal Engine - Codesigning and Distribution
Hi everyone! I have what I think is going to be a problem with a very simple solution, but I've reached the limits of my knowledge with this sort of thing. I'm an exhibit/experiential designer trying to build interactive 3D environments with Unreal Engine. Besides being more technically literate than most designers, I don't have very much development knowledge at all. I've packaged my .app through UE and it's running great. The part that I can't seem to wrap my head around is code-signing and notarizing. I believe I've gone through the process correctly but I still get the Gatekeeper dialog box rejecting my app as from an unidentified developer when I run it on a different Mac or download it onto my development Mac and try to run it. I'm using a Developer ID Application certificate installed to Keychain, and ran codesign with that certificate as shown below on every single binary and .dylib file in the package: codesign --deep -f -v -s Developer ID Application: My Name (IDCODE) --entitlement
6
0
4.4k
Jun ’20
codesign: "A timestamp was expected but was not found"
Hello,My CI builds are failing regularly since July 1st with this codesign error: A timestamp was expected but was not found..The Mac app has a few frameworks which are properly signed, and sometimes it gets through the signing process but fails at a seemingly random code signing command with this error.I have checked and the signing certificate (Developer ID) expires in 2017. I also made sure that the CI servers had their time set automatically using the time.apple.com servers to prevent clock drift.Short of disabling timestamps with --timestamp none in the codesign command, is there anything I can do? Am I tied to Apple's timestamp servers' whims?Thanks for any insight,Philippe
Replies
7
Boosts
0
Views
10k
Activity
Jul ’15
debug won't codesign, other configs will
I am unable to get a fully codesigned debug version of my app, whilst other configurations such as the profiling build will codesign. This is obvious as it is a sandboxed app and the debug version cannot generate a bookmark for a file (Cocoa error 256) whilst the profiling version can. Other entitlements, networking and microphone, work fine on both versions. When I use codesign -v it reports that the app isn't signed at all. I use automatically managed signing and this has been working until yesterday, when I manually installed a new developer install certificate in the keychain. The actual warning is appname isn't code signed but requires entitlements. It is not possible to add entitlements to a binary without signing it. This is the entitlements file:<?xml version=1.0 encoding=UTF-8?><!DOCTYPE plist PUBLIC -//Apple//DTD PLIST 1.0//EN http://www.apple.com/DTDs/PropertyList-1.0.dtd><plist version=1.0><dict> <key>com.apple.security.app-sandbox</key&g
Replies
1
Boosts
0
Views
415
Activity
Apr ’20
CodeSign failed with nonzero exit code
I'm running 10.15 with Xcode 11.1I've got an iPad application that works, and wanted to try things out under Catalyst on my Mac. I selected Mac from the Xcode device menu and ran again, but I get an error at the end of compilationCommand CodeSign faild with nonzero exit codeI cleaned the build folder, installed a MacOS distribution certificate, but the error persists. Any ideas?
Replies
3
Boosts
0
Views
1.1k
Activity
Oct ’19
Codesign prints to stderr: workaround and bug report
First off I submitted a bug report at https://developer.apple.com/bug-reporting/Using Xcode 11.3 and command line utilities.Bug: codesign command line utility always prints to stderr.This confused me while I was trying to test that codesigning succeeded as part of a continuous integration script.NOTE that you may use the codesign return value to test success or failure.Workaround: One liner to save only stderr output from a command to a variable and print stdout:{ stderr_only=$( { codesign ${=CSVARS} $SIG $APP_NAME; } 2>&1 1>&3 3>&- ); } 3>&1; ret_val=$? echo Return val: $ret_val echo Codesign stderr only: $stderr_onlyScript to reproduce#!/bin/zsh #codesign_prints_to_stderr.sh export CSARGS=-f --verbose --timestamp -o runtime --sign #NOTE: Replace with a valid signature export SIG=Developer ID Application: Your Company (ID) #NOTE: Replace with a valid app folder export APP_NAME=TestApp.app echo codesign ${=CSARGS} $SIG $APP_NAM
Replies
2
Boosts
0
Views
1.2k
Activity
Mar ’20
codesign ask me 34 times to access
Hi guy,why Xcode ask me for many times to access the keychain and other times only ones or twice?and if I click on 'consenti' (in English 'allow') pop up other codesign prompt. I've counted there are 34 requestscome out.how can I solve this problem?these are two screenshot about problem
Replies
2
Boosts
0
Views
4.9k
Activity
Nov ’16
Xcode asks for codesign keychain pw
I can no longer build to my iphone 8 plus because I get asked for my codesign keychain access password and I apparenly do not know the pw. I was able to build to this iphone fine as of a few days ago. I am running Xcode 9 on Mac OS Sierra. IPhone is running ios 11. I can build to the simulators. Any help would be greatly appreciated. Thank sin advance Jim Allison
Replies
1
Boosts
0
Views
583
Activity
Nov ’17
new mac, codesign unknown error -1=ffffffffffffffff
just got a new mac and now i get codesign errors. the time savedby a faster CPU is now burnt up fixing weird bugs related to codesigning.whatever.app: unknown error -1=ffffffffffffffffCommand /usr/bin/codesign failed with exit code 1it would be nice if apple had a verbose mode for this codesign command so we can trace the problemrather than saying unknown errorside note: for another account, i fixed the problem by regenerating signing certs and provisioning profiles.but this is for a client and they dont like us deleting certs because it disrupts other developers.there are various hints on this topic online and i have tried a bunch of them but no progress.same error always.i can codesign on my old mac. so the provisioning is correct. just not on this mac.should i return this new one to the apple store? it's real nice, but if ican't do critical operations...what we need is a verbose codesign mode for this type of thingthis is for production / upload to test flight b
Replies
6
Boosts
0
Views
2.1k
Activity
Jul ’18
codesign use of Cloud-managed Developer ID
My non-cloud Developer ID certificate will expire soon, and my account also has a cloud-managed Developer ID Certificate. My Mac application build workflow uses Archiving, so the cloud cert should be fine for that. But my workflow also signs bundled apps, such as Sparkle framwork's Autodupate app, using the codesign tool. Is it correct that codesign only uses certificates from the local Keychain, and so cannot use a Cloud-managed Developer ID certificate? Before I manually renew the non-cloud Developer ID certificate, I want to make sure I'm not missing some easier method. Thanks.
Replies
1
Boosts
0
Views
568
Activity
Nov ’24
Xcode CI codesign issues
I'm using the latest El Capitan, and Server Beta 3 with Xcode Beta 3.The selected Xcode is configured with the proper team account that has the codesigning certificate.This was from importing a devloper profile.I also added and selected the corresponding team on the CI config screen in the Server.app.Building with the Xcode that is selected, code signs properly. However when the bot runs, it fails saying it can't find the identity.Any ideas on why the Xcode the server is configured to use code signs properly, but the bot cannot?
Replies
0
Boosts
0
Views
335
Activity
Jul ’15
codesign with entitlement is not working
I have binary application in c++ and objective c++ created not with xcode. I'm trying to sign and add entitlement that will allow the application to store certificate in keychain. When I sign the app with entitlement and try to run it crash and I see error - Code Signature Invalid. signing without the entitlement is fine. command to sign: codesign -f -s MyName -o runtime --timestamp --entitlements Here is the file: keychain-access-groups myApp Why I'm not able to add entitlement to my app ?
Replies
1
Boosts
0
Views
3.9k
Activity
Nov ’21
Xcode 10.2ß Codesign error because of detritus
I am experiencing a codesign issue when I try to build with XCode 10.2ß2, the same with ß3.I have some code that compiles fine with XCode 10.0 or with XCode 10.1ß2.When I try to compile the exact same project with XCode 10.2ß2, or ß3, I get the following error:/Users/xxxxxxxx/Library/Developer/Xcode/DerivedData/appName-bgrsgphmdtpjpwalpbfagjcpdzrc/Build/Products/Debug/appName.app: resource fork, Finder information, or similar detritus not allowedCommand CodeSign failed with a nonzero exit codeI have cleaned the attributes with xattr command in Terminal, no change.I have tried to change Swift language version, testing with unspecified, 5, 4.2 and 4. No change.
Replies
6
Boosts
0
Views
1.4k
Activity
Feb ’19
Identity findable by `security find-identity`, but not `codesign`
I am experiencing an issue with signing an application, where codesign is unable to find the identity I am referencing. I have imported a .p12 certificate into a keychain labeled build.keychain, and running security find-identity -v -p codesigning build.keychain returns 1 valid codesigning identity. When I use the unique identifier provided (the all-caps hex hash) as the signing identity for the codesign command, the command exits with the error error: The specified item could not be found in the keychain. I have tried specifying the keychain to search within (build.keychain), as well as running the command without specifying the keychain. The specific command in question is: codesign --continue --force -vvvv --keychain /Users/runner/Library/Keychains/build.keychain-db -s $SIGNER_HEX_HASH --options runtime path/to/app/App.app/Contents/Frameworks/App.framework/Versions/A My apologies if I'm missing something obvious. Most forums and posts reference cases where no va
Replies
1
Boosts
0
Views
1.2k
Activity
Apr ’23
Codesigning binaries in bundle
I am building plug-ins for audio software. I am using the JUCE framework and I am building with VScode / CMake / Ninja / LLVM I want to package the output, which are two bundles Sinensis.component (the AU plugin) and Sinensis.vst3 (the vst3 plugin) I am using this script : codesign -s Developer ID Application: $DEVELOPER_ID --timestamp --force -o runtime -i $PLUGIN_NAME.component $PLUGIN_NAME.component/Contents/MacOs/$PLUGIN_NAME #--options=runtime pkgbuild --install-location /Library/Audio/Plug-Ins/Components --sign Developer ID Installer: $DEVELOPER_ID --timestamp --identifier $IDENTIFIERau --version $VERSION --root $PLUGIN_NAME.component $PLUGIN_NAME_au.pkg codesign -s Developer ID Application: $DEVELOPER_ID --timestamp --force -o runtime -i $PLUGIN_NAME.vst3 $PLUGIN_NAME.vst3/Contents/MacOs/$PLUGIN_NAME #--options=runtime pkgbuild --install-location /Library/Audio/Plug-Ins/VST3 --sign Developer ID Installer: $DEVELOPER_ID --timestamp --identifier $IDENTIFIERvst3 --version $VERSION --root
Replies
1
Boosts
0
Views
1k
Activity
Apr ’24
Manual codesign failed - Illegal instruction: 4
I'm trying to manually codesign a prebuilt binary of SQLite (sqlite3) using the following command:codesign -s Mac Developer --entitlements sqlite3.entitlements sqlite3However, when I try to run the result sqlite3, I get:Illegal instruction: 4What was I doing wrong?
Replies
2
Boosts
0
Views
4.4k
Activity
Aug ’16
Unreal Engine - Codesigning and Distribution
Hi everyone! I have what I think is going to be a problem with a very simple solution, but I've reached the limits of my knowledge with this sort of thing. I'm an exhibit/experiential designer trying to build interactive 3D environments with Unreal Engine. Besides being more technically literate than most designers, I don't have very much development knowledge at all. I've packaged my .app through UE and it's running great. The part that I can't seem to wrap my head around is code-signing and notarizing. I believe I've gone through the process correctly but I still get the Gatekeeper dialog box rejecting my app as from an unidentified developer when I run it on a different Mac or download it onto my development Mac and try to run it. I'm using a Developer ID Application certificate installed to Keychain, and ran codesign with that certificate as shown below on every single binary and .dylib file in the package: codesign --deep -f -v -s Developer ID Application: My Name (IDCODE) --entitlement
Replies
6
Boosts
0
Views
4.4k
Activity
Jun ’20