Search results for

codesign

3,115 results found

Post

Replies

Boosts

Views

Activity

Command /usr/bin/codesign failed with exit code 1
Hello everyone,Xcode gives me this error when I try to run my app on the simulator.- Command /usr/bin/codesign failed with exit code 1I've been looking up articles dealing with provisioning profiles and so forth, and from what I'm able to see, issues pertaining to provisioning profiles and certificates are supposed to be fixed automatically.Any ideas?Andy
0
0
630
Apr ’17
Getting Command CodeSign failed with a nonzero exit code while doing the Archive in Xcode.
App is working in simulator. But when i am doing archive for production IPA file. That time i am getting 'Command CodeSign failed with a nonzero exit code'. App signing and keychain access are valid in xcode. I have tried code signing identity remove/add , certificate keychain access validation. Below error message are getting - CodeSign /Users/username/Library/Developer/Xcode/DerivedData/CvCare-gzbmawocpnufzmbznuhwulouslxo/Build/Intermediates.noindex/ArchiveIntermediates/CvCare/InstallationBuildProductsLocation/Applications/CvCare.app (in target 'CvCare' from project 'CvCare') cd /Users/username/Cordova_workspace/TestingCvCare/CvCare/platforms/ios Signing Identity: Apple Distribution Provisioning Profile: iOS_distribution_profile /usr/bin/codesign --force --sign --entitlements /Users/username/Library/Developer/Xcode/DerivedData/CvCare-gzbmawocpnufzmbznuhwulouslxo/Build/Intermediates.noindex/ArchiveIntermediates/CvCare/IntermediateBuildFilesPath/CvCare.build/Release-iphoneos/CvCare.
1
0
1.2k
Dec ’23
codesign failing with "Trace/BPT trap: 5" since Sierra upgrade
Since I updated my Mac to Sierra, attempting to codesign anything (for OSX) results in an error message Trace/BPT trap: 5Internet searching seems to indicate this error message is related to dynamic libraries, but running otool -L did not tell me anything that is missing, i.e. I go this:> otool -L /usr/bin/codesign/usr/bin/codesign: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1348.28.0) /System/Library/Frameworks/Security.framework/Versions/A/Security (compatibility version 1.0.0, current version 57740.31.2) /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 307.4.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1238.0.0)All those files are available on my system.When I run codesign -s with the same developer ID as always (which keychain says is valid through 2019) all I see is that Trace/BPT trap: 5 message with no explanation. I've attempted t
0
0
1.6k
Mar ’17
/usr/bin/codesign failed with exit code 1 cause:No such file or directory
CodeSign /Users/fanqianwen/Library/Developer/Xcode/DerivedData/iMOKO-duxwwacqnokyogbaoufeiplaswao/Build/Products/Debug-iphonesimulator/iMOKO.app cd /Users/fanqianwen/meituan/iMOKO/iMOKO export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate export PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin Signing Identity: - /usr/bin/codesign --force --sign - --timestamp=none /Users/fanqianwen/Library/Developer/Xcode/DerivedData/iMOKO-duxwwacqnokyogbaoufeiplaswao/Build/Products/Debug-iphonesimulator/iMOKO.app /Users/fanqianwen/Library/Developer/Xcode/DerivedData/iMOKO-duxwwacqnokyogbaoufeiplaswao/Build/Products/Debug-iphonesimulator/iMOKO.app: No such file or directory Command /usr/bin/codesign failed with exit code 1when linking period ,the error occur ?what should I do ?w
0
0
1.4k
Sep ’17
Codesigning on OS X, dialog shown only on OS X 10.7
Hi,We're using cURL to communicate with a server with mutual authentication (server and client-side certificates). The application runs on OS X 10.7 and newer. We're using CLion, not XCode for development.Before we signed our binary the following dialog popped up every time we did client side authentication via (CURLOPT_SSLCERT)http://i.stack.imgur.com/IAjtV.pngOnce signed, the dialog is not shown on 10.8 or newer. However, when on OS X 10.7 the dialog is shown despite the binary being signed, but now with only the text Do you want to allow access to this item?We sign the binary as follows (the .pfx used for codesigning is previously imported into the keychain):> codesign -s Our Identifier path/to/binaryfileWhen running (both on 10.7 and 10.11)> codesign --verify -v path/to/binaryThe result is> binaryname: valid on disk> binaryname: satisfies its Designated RequirementSo it seems the code signing is valid also on 10.7 - is this just different behavior on OS X's part? Can
0
0
378
Apr ’16
Codesign and AppStore verification failure after manually lipo'ing two dylibs
We are creating a universal build of our application for the Mac App Store by merging separate x86_64 and arm64 bundles using a script. Codesign verification fails for some dylibs if they are signed after merging: % lipo -create x86_64/test.dylib arm64/test.dylib -o universal/test.dylib % codesign -s *** -f --timestamp universal/test.dylib % codesign --verify --verbose=2 universal/test.dylib test.dylib: invalid Info.plist (plist or signature have been modified) It seems verification fails for only those dylibs that have an Info.plist embedded in them. We were able to work around this issue by signing the individual dylibs before merging, but now AppStore verification is failing with the following error: ITMS-90336: Mismatched Embedded Info.plist: The executable 'test.dylib' has mismatched embedded Info.plists. This could be due to the use of 3rd party build tools. Does this mean that the __info_plist section in all the slices in the universal binary should be exactly the same (bitwi
3
0
1.9k
Oct ’22
Reply to Is Apple's Timestamp Server Acting Up?
There can be an another issue, if you're extremely unlucky FB13701209 In short, if there are approximately 30 seconds between codesign calls, this could cause race in a timestamp service. If codesign will be called After ~29.9 seonds of The Timestamp service will lmar conneciton as initiated, Will perform some work, and after 0.1 second will receive socked_closed Timestamp service will treat this as unexpected connection termination, and will reply to the codesign with somewhat error. Codesign will fail, and the build will as well. Woekarounds: call 'fake' codesigns manually terminate XPCTimeStampingService between build phases that won't require codesigning for a long time (30 sec) You can try to find what's going on with sudo log collect --start XXX and search for codesign, and / or XPCTimeStampingService calls
Topic: Code Signing SubTopic: General Tags:
Mar ’24
Installer Application Not Proceeding After Codesigning with Hardened Runtime Enabled
I'm encountering a peculiar issue with my macOS installer application when hardened runtime is enabled (--options runtime) during code signing, and I'm hoping to get some guidance on how to resolve it. Issue Description: My installer application is designed to prompt users for system credentials upon launch. After entering the correct credentials and clicking OK, users should see the next screen to proceed with the installation process. However, with hardened runtime enabled, the application stops responding after the credential entry step. The next screen, where users should proceed with installation, does not appear. If I codesign without using hardened runtime, my installer works fine. However it fails during notarization. What I've Tried: I have reviewed Apple's documentation on hardened runtime and notarization to ensure I'm following best practices. I've checked the Console logs for any relevant error messages or warnings, but haven't found any conclusive information. Additional Information: Th
2
0
831
Apr ’24
codesign not signing .app MacOS executable 'can't verify signature'
I am facing an issue while codesigning the Content/MacOS executable. The executable name is exactly similar to the .app file, and the signing certificates have not expired yet. Steps followed to generate signed files: Executed codesign on files within the .app folder. Then executed codesign on the .app folder. Tried to notarize with the new notarization tool. Do we have to sign each individual file and folder? Observations: .DS_Store files were removed from the .app before signing. Another app with the same certificate is able to sign correctly. Content/MacOS contains multiple files, including the app executable. These files are signed except the main executable. same installed_app after copying at another location showing signed. Getting: App Sandbox-Not enabled Hardening-Enabled - Version 10.9.0 Notarization-Granted Gatekeeper-Can't evaluate Signed By- Can't verify signature
3
0
778
Nov ’23
Codesign problem on 10.12
I have a project that builds just fine on my Mac Pro with 10.11 on it. But when I try to build it on my MacBook Pro with 10.12 I get this error:/Users/brian/Library/Developer/Xcode/DerivedData/Nanosaur_2_-_iOS-avkcubyaqxamgcarkvneoavwjuwx/Build/Products/Optimized-iphoneos/Nanosaur2.app: resource fork, Finder information, or similar detritus not allowedAnyone have a clue?-Brian
3
0
1.2k
Sep ’16
codesign stubbornly failing
I'm trying to sign a .app package coming from Py2app. Unfortunately I keep running into the same two issues: The binary is not signed with a valid Developer ID certificate. and The signature does not include a secure timestamp. I tried everything, from recreating the signatures, with different arguments, different keys and certificates, but it keeps complaining with these two errors on a long list of files. For reference I added the python script I use for signing the files. code_singing.py
7
0
680
Sep ’25
Command /usr/bin/codesign failed with exit code 5
CodeSign /Users/ogystoev/Library/Developer/Xcode/DerivedData/APPNAME-/Build/Intermediates/ArchiveIntermediates/APPNAME/InstallationBuildProductsLocation/Applications/APPNAME.app cd /Users/ogystoev/Documents/WORK/APPNAME/ios export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate export PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbinSigning Identity: iPhone Developer: .....Provisioning Profile: iOS Team Provisioning Profile: ..... () /usr/bin/codesign --force --sign --entitlements /Users/ogystoev/Library/Developer/Xcode/DerivedData/APPNAME-/Build/Intermediates/ArchiveIntermediates/APPNAME/IntermediateBuildFilesPath/APPNAME.build/Release-iphoneos/APPNAME.build/APPNAME.app.xcent --timestamp=none /Users/ogystoev/Library/Developer/Xcode/DerivedData/APPNAME-/Build/Intermediates/Archive
12
0
3.2k
Oct ’16
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.2k
Jul ’22
Codesign fails when started from SSH, succeed in Mac Desktop
Hi, I'm using fastlane to build/sign my project and it works perfectly when I ran it in my Mac. I'm trying to setup some Jenkins CI/CD server in AWS EC2, and I started to have a problem with code sign. I realized that it's not something related to AWS, because if I ssh to my own Mac using ssh localhost it's possible to simulate the problem. To isolate the problem, I'm using this very simple project with fastlane: https://github.com/rlechetaudemy/helloios This issue is also not related with match, because if you setup fastlane with manual signing, it returns the same error. I also tried to use the 'setup_ci' action before build/sign but without success. setup_ci( force: true ) These are the logs: [13:11:36]: ▸ Copying GoogleService-Info.plist [13:11:37]: ▸ Processing Info.plist [13:11:38]: ▸ ** ARCHIVE FAILED ** [13:11:38]: ▸ The following build commands failed: [13:11:38]: ▸ CodeSign /Users/user/Library/Developer/Xcode/DerivedData/HelloIOS-eibmqfokwytdeddxnnluvsuzbtlp/Build/Intermediates.noindex/Arch
4
0
5.2k
May ’22
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
677
Jan ’16