Search results for

codesign

3,110 results found

Post

Replies

Boosts

Views

Activity

Codesign in a CI environment (Sequoia)
Can someone please describe what is necessary to perform signing using codesign in a system that runs as LaunchDaemon. All workarounds like placing the codesigning cert + private key a custom keychain and unlock it in the session of the LaunchDaemon doesn't work anymore on Sequoia. Or are there alternatives for signing MachO binaries without codesign?
Topic: Code Signing SubTopic: General
1
0
411
Feb ’25
codesign hangs on 10.11?
I'm wondering if anyone else is seeing that calling codesign (manually from Terminal) just hangs (and niot showing a popuop dialofg asking for permission, either).for example, i'm running/usr/bin/codesign -v --deep --force --sign Developer ID Application: MyCompany ./MyApp.appand it just never returns.
3
0
2.7k
Jun ’15
Codesigning Error
Even when I start a new project from XCode 8 & macOS 10.12 and try to test it on the device, I get this codesigning error :error: A cryptographic verification failure has occurred.I tried removing my developer account from XCode, and even revoked all my certificates and provisionning profiles on the Member Center, but I still get this error.Am I the only one ?
9
0
1.8k
Jun ’16
codesign framework in xcode8
try every possible solutions provides online but still have encountering the same issue.Signing Identity: - /usr/bin/codesign --force --sign - --timestamp=none /Users/name/Library/Developer/Xcode/DerivedData/-apmvzhzaqwfebxdecjbcwxytdvez/Build/Products/Release-iphonesimulator/.framework/Users/name/Library/Developer/Xcode/DerivedData/apmvzhzaqwfebxdecjbcwxytdvez/Build/Products/Release-iphonesimulator/.framework: bundle format unrecognized, invalid, or unsuitableCommand /usr/bin/codesign failed with exit code 1** BUILD FAILED **The following build commands failed: CodeSign /Users/name/Library/Developer/Xcode/DerivedData/-apmvzhzaqwfebxdecjbcwxytdvez/Build/Products/Release-iphonesimulator/.framework(1 failure)Command /bin/sh failed with exit code 65
2
0
878
Jan ’17
codesign: invalid argument "rce"
Hello,I have codesigned quite a lot of apps in the past, but didn't do it for a while.I codesign via the termial (no Xcode): codesign -s MyCertificateName --deep -force myApp.appNow I get the error: invalid argument rceI don't see, where I used an argument rce and what could be the issue here.Any ideas what is going wrong here?ThanksTiemo
1
0
1.8k
Apr ’16
jpackage calling codesign
I'm new to Mac and packaging and signing, but I've come a long way. I've got a Developer ID and a code signing certificate. I want to package a Java app and first of all distribute it from my website, not AppStore. my jpackage call is this: [ ! -d smalljre ] && jlink -p /usr/lib/jvm/java-17-openjdk-amd64/jmods --add-modules java.base,java.desktop --output ./smalljre jpackage --verbose --input build --main-jar i2brain.jar --name i2Brain --app-version 3.3.2 --type app-image --runtime-image ./smalljre I know I will need to sign the app, see below. The output: Mac-mini:FromUbuntu johnmac$ ./run_jpackage [14:56:32.358] Creating app package: i2Brain.app in /Users/johnmac/Downloads/FromUbuntu [14:56:32.656] Using default package resource JavaApp.icns [icon] (add i2Brain.icns to the resource-dir to customize). [14:56:32.658] Preparing Info.plist: /Users/johnmac/Downloads/FromUbuntu/i2Brain.app/Contents/Info.plist. [14:56:32.660] Using default package resource Info-lite.plist.template [Application Info.plist]
1
0
1.2k
Feb ’23
codesign - edited signature
Hey all! I'm building a Python based app with PySide6-deploy. This gives me a .app directory with all the necessary things already in it. To be able to distribute this I provided just the .app path to the codesign looking like this: codesign -s My Name --keychain keychain -f --deep RenderRob.app If I try to check or sign the package, it looks promising: codesign --verify ... RenderRob.app: valid on disk RenderRob.app: satisfies its Designated Requirement Unfortunately this signed package does not work when checking with spctl. spctl --assess --verbose RenderRob.app/Contents/MacOS/libcrypto.3.dylib RenderRob.app/Contents/MacOS/libcrypto.3.dylib: rejected If I look in the log of the notarizing, I saw that something is off with signature of the binary dependencies. Then I checked the binary dependencies, it turns out it complains about an edited signature: codesign -dv -verbose=4 RenderRob.app/Contents/MacOS/libcrypto.3.dylib RenderRob.app/Contents/MacOS/libcrypto.3.dylib: edi
2
0
86
Apr ’25
codesign osx binary
Hello, We are trying to codesign our osx binary which we created. $ codesign --verbose=4 --timestamp --strict --options runtime -s Developer ID Application: Rill Data, Inc (XXX) macOS-x64/application/rill --force macOS-x64/application/rill: replacing existing signature macOS-x64/application/rill: signed Mach-O thin (x86_64) [rill] $ codesign --verify macOS-x64/application/rill --verbose=4 macOS-x64/application/rill: valid on disk macOS-x64/application/rill: satisfies its Designated Requirement We also tried creating the pkg, we were able to install it locally but when actually executing the binary it again complained Apple cannot check it for malicious software We also tried getting it notarized but that also fails. $ xcrun altool --notarization-info -u <> -p <> No errors getting notarization info. Date: 2022-08-19 05:26:14 +0000 Hash: RequestUUID: Status: in progress Status Code: 2 Status Message: Package Invalid
1
0
2.4k
Aug ’22
CodeSign Failed
Hello, I've had the problem for a few days that if I start a program at Xcode or it wants to test always the error comes.( CodeSign /Users/jason/Library/Developer/Xcode/DerivedData/UpdateSys-blimigwmvdmnzcauycqdgvwyuzez/Build/Products/Debug/UpdateSys.app (in target: UpdateSys) cd /Users/jason/Documents/UpdateSys export CODESIGN_ALLOCATE=/Users/jason/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate Signing Identity: - /usr/bin/codesign --force --sign - --entitlements /Users/jason/Library/Developer/Xcode/DerivedData/UpdateSys-blimigwmvdmnzcauycqdgvwyuzez/Build/Intermediates.noindex/UpdateSys.build/Debug/UpdateSys.build/UpdateSys.app.xcent --timestamp=none /Users/jason/Library/Developer/Xcode/DerivedData/UpdateSys-blimigwmvdmnzcauycqdgvwyuzez/Build/Products/Debug/UpdateSys.app /Users/jason/Library/Developer/Xcode/DerivedData/UpdateSys-blimigwmvdmnzcauycqdgvwyuzez/Build/Products/Debug/UpdateSys.app: replacing existing signature /Users/jason/Libra
1
0
1.2k
Jun ’19
codesign xpc
We are having issues code signing correctly the XPC services that are deployed with our app.When checking in CLI I see the followingspctl --assess --verbose ./xxxxxx-xpc.xpc./xxxxxxx-xpc.xpc: rejected (the code is valid but does not seem to be an app)I really don't know where to take it from here. All targets are set to automatically manage sigining.There is very little on the web about examples to how to porperly codesign XPC services.We are using XCode 8.3.3The XPC services reside in Contents/XPCServicesCan anyone provide some guidance ?
4
0
1.5k
Sep ’17
Automate codesigning with hardware token
I have my DeveloperID certificate in a hardware PIV token, and am able to sign code from the command line using the codesign utility. Now I want to automate the process, but codesign throws up a dialog box asking for my PIN Enter PIN to allow this. How do I unlock the PIV token from the command line so this doesn't need a human in the loop? Thanks!
1
0
483
Sep ’20
SIGKILL - CODESIGNING
Hello,I have a strange problem.After upgrading an App, on some devices, it crashes at boot and the log says: EXC_BAD_ACCESS (SIGKILL - CODESIGNING).The certificates are ok, and the same binary works on other devices with the same iOS version.I converted the App to xcode 7, autogenerate new certificate and the App works again.In xcode 7 with the old certificate the App crashes.All the certificates are valid.This happens only with some devices (2 of 40).Thanks.Santino
0
0
1.1k
Jul ’16
Codesign illegal instruction 4
I recently updated to MacOS 10.14 and have a problem now manually codesigning an Adobe Air app for outside App Store release. Everything in my bash script still executes just fine, except the lines where I codesign. codesign -f -v -s Developer ID Application: Myapp.app/Contents/Frameworks/Adobe AIR.framework/Versions/1.0/Adobe AIR_64 results in Illegal instruction: 4 What could the cause for this problem be? Are there ways to get details of that error? Thanks, Chris
0
0
484
Dec ’20
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
837
Aug ’24