Search results for

codesign

3,114 results found

Post

Replies

Boosts

Views

Activity

Reply to codesign command fails with errSecInternalComponent
Thanks for the quick response. The underlying problem is getting Xcode to build my app successfully. This was working until I unwittingly damaged my Login Keychain and had to rebuild it. The basic test above isolates the problem to code signing in general as opposed to some setting in Xcode. What changed is I had to reset my Login Keychain so some piece of information may have been lost but neither codesign nor automatically manage signing in Xcode provide any clue in this case.
Aug ’24
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
843
Aug ’24
XCode Cloud Developer ID Can't Codesign DMG File
I am using Xcode Cloud to build my Mac Catalyst app for Developer ID Distribution as a DMG package that must be codesigned and notarized. I have a ci_post_xcodebuild.sh script that runs after the Archive action. This needs to perform the following tasks: Produce a DMG from the provided exported archive located at CI_DEVELOPER_ID_SIGNED_APP_PATH Codesign that DMG using the same certificate identity that Xcode Cloud used when automatic code signing the exported archive using cloud signing. Notarize that code signed dmg with the notary service Generate a Sparkle appcast.xml file Upload the DMG and appcast.xml file to s3 The issue I am having is that I do not have access to the cloud signing keychain identity that Xcode Cloud uses to automatically codesign the exported archive. I check for identities and none are found. Running: security find-identity -v -p codesigning There are no code signing identities available. Make sure you have a Developer ID (Application) certificate (w
0
0
692
Aug ’24
How to get a Smart Card reader to run?
Hi, I'm trying to get a smart card reader to run with Xcode. I set up the com.apple.security.smartcard entitlement in the .entitlements file and added it in Bild Settings -> Code Signing Entitlements. But when I run: codesign -d --entitlements - Path/to/App, nothing smart card related shows up. Also the TKSmartCardSlotManager.default isn't nil, but .slotNames are. Do I have to install some drivers manually? Please help.
1
0
562
Aug ’24
Persistent Notarization Issues with Electron App
I am runnning persistent notarization issues with my macOS Electron application. Despite multiple attempts to resolve these issues, the notarization status remains Invalid, and the errors in the report are consistent. What I'm doing Sign the code like this codesign --sign Apple Distribution: Name Lastname (123456) --deep --force --timestamp=auto path/to/Application.app I then get: Application.app: replacing existing signature I then verify the signing with: codesign --verify --deep --strict --verbose=4 path/to/Application.app I then get: --prepared:/path/to/Application.app/Contents/Frameworks/SomeFramework.framework --validated:/path/to/Application.app/Contents/Frameworks/SomeFramework.framework --prepared:/path/to/Application.app/Contents/Frameworks/AnotherFramework.framework --validated:/path/to/Application.app/Contents/Frameworks/AnotherFramework.framework Application.app: valid on disk Application.app: satisfies its Designated Requirement I then build: npm build I then package: zip -r Ap
1
0
815
Aug ’24
Unable to install app on physical device
Hi, I have an app developed with Go and Fyne and would like to test that on a few physical iOS devices. It runs fine with the simulator. I have created a Certificate and Identifier, registered a couple of devices and create a Provisioning Profile. I somehow ended up with two teams in Xcode, a Personal Team (whatever that means) and a company team. I think the company team is being used with the associated certificate but that is not obviously trivial (to me). No matter what I try, I can't get that Provisioning Profile installed (in Xcode I presume). It fails with Failed to install one or more provisioning profiles on the device. Please ensure the provisioning profile is configured for this device. If not, please try to generate a new profile. I am absolutely sure that I generated that Provisioning Profile for the couple of devices I registered. I assume that device is the device currently selected in the Devices and Simulators window of Xcode. I have tried it so many times now getting the exact same result th
0
0
351
Aug ’24
kext for x86_64 + arm64e change into only x86_64 after codesign.
I have a kext in app, and I can run it well on Xcode, but I cannot successfully run kextload command after archive. According to the error message, I then use lipo -archs to check kext archs, I found some strange things. Checkout the result of app in Xcode product directory: The result of app in Archive directory: Is there a way to resolve this issue? Where might the mistake be? Or Can I just copy app and code sign, notarize the app, then provide it for others to use?
1
0
562
Aug ’24
Code Signing/Notarisation for .app that runs Java, no XCode
Hi there- Like the title says, I'm trying to get an .app bundle code-signed and notarised that runs java internally, without using XCode. I've mostly based my workflow off the advice and notes given here and here, but I'm running into problems with using notarytool at the final step, rather than altool. My basic workflow from the same directory with the .app is as follows... codesign --deep --force --options=runtime --entitlements ../resources/entitlements.plist --sign DEVELOPER_ID_ETC --timestamp MyApp.app/Contents/MacOS/launcher.command codesign --deep --force --options=runtime --entitlements ../resources/entitlements.plist --sign DEVELOPER_ID_ETC --timestamp MyApp.app/Contents/Java/code_jar.jar codesign --deep --force --options=runtime --entitlements ../resources/entitlements.plist --sign DEVELOPER_ID_ETC --timestamp MyApp.app/Contents/PlugIns/OSX_JRE codesign --deep --force --options=runtime --sign DEVELOPER_ID_ETC --timestamp MyApp.app/Contents/Resources/app_icon.icns
2
0
734
Aug ’24
Reply to Code signing C++ app with embedded Python3 interpreter
I gave up and spent about 3 hours googling around and found a project that had successfully codesigned an embedded Python.framework and I was able to adapt it to actually work. In case others run into this issue here is the script: cd bin # Use Depth First # Python Frameworks find ./Sigil.app/Contents/Frameworks/Python.framework/Versions/3.11/lib/ -type f -perm -u=x -exec codesign --force --verbose --options=runtime --entitlements=/Users/kbhend/entitlements.plist --timestamp -s ${CODE_SIGN_ID} {} ; find ./Sigil.app/Contents/Frameworks/Python.framework/Versions/3.11/bin/ -type f -perm -u=x -exec codesign --force --verbose --options=runtime --entitlements=/Users/kbhend/entitlements.plist --timestamp -s ${CODE_SIGN_ID} {} ; find ./Sigil.app/Contents/Frameworks/Python.framework/Versions/3.11/lib/ -type f -name *dylib -exec codesign --force --verbose --options=runtime --entitlements=/Users/kbhend/entitlements.plist --timestamp -s ${CODE_SIGN_ID} {} ; find ./Sigil.app/Contents/Fr
Aug ’24
Reply to Code signing C++ app with embedded Python3 interpreter
It is now many years later and I am still trying to sign Sigil well enough to get it notarized. I have tried everything and not matter what I do when code-signing the embedded Python.framework inside Sigil.app Frameworks, I get the following error: --prepared:/Volumes/SSD-Drive/repo/devsigil/build672/bin/Sigil.app/Contents/Frameworks/Python.framework/Versions/Current/. ./Sigil.app: a sealed resource is missing or invalid In subcomponent: /Volumes/SSD-Drive/repo/devsigil/build672/bin/Sigil.app/Contents/Frameworks/Python.framework file modified: /Volumes/SSD-Drive/repo/devsigil/build672/bin/Sigil.app/Contents/Frameworks/Python.framework/Versions/Current/lib/libtcl8.6.dylib file modified: /Volumes/SSD-Drive/repo/devsigil/build672/bin/Sigil.app/Contents/Frameworks/Python.framework/Versions/Current/lib/libtk8.6.dylib file modified: /Volumes/SSD-Drive/repo/devsigil/build672/bin/Sigil.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.11/lib-dynload/_asyncio.cpython-311-darwin.so file modified: /V
Aug ’24
Reply to setCodeSigningRequirement and Security Agent Plugins
More log details: com.apple.securityd debug 09:13:29.674468-0500 SecurityAgentHelper-arm64 staticCode SecStaticCode network default: NO com.apple.securityd debug 09:13:29.674577-0500 SecurityAgentHelper-arm64 staticCode SecStaticCode network blocked: YES com.apple.securityd debug 09:13:29.674621-0500 SecurityAgentHelper-arm64 staticCode SecStaticCode network blocked: YES com.apple.securityd debug 09:13:29.674952-0500 SecurityAgentHelper-arm64 staticCode SecStaticCode network blocked: YES com.apple.securityd debug 09:13:29.675103-0500 SecurityAgentHelper-arm64 xpc no query dict to determine whether for system keychain: Error Domain=NSOSStatusErrorDomain Code=-50 no object for key query (paramErr: error in user parameter list) UserInfo={numberOfErrorsDeep=0, NSDescription=no object for key query} com.apple.securityd default 09:13:29.675178-0500 SecurityAgentHelper-arm64 SecCritical Failed to talk to trustd after 4 attempts. com.apple.securityd debug 09:13:29.675329-0500 SecurityAgentHelper-arm64 xpc no query di
Topic: Code Signing SubTopic: General Tags:
Aug ’24
Reply to AMFI - framework has entitlements but is not a main binary
Hi everyone, we got the same issue as OP. Also our codesign -d --entitlements - *.framework output looks the same, Executable and an empty Dict. The App Store doesn't raise any errors, the app gets to the TestFlight and crashes on launch. No crash report in Analytics, the only track is this message in the Console: XYZ.framework has entitlements but is not a main binary. And it's for every framework inside the app.
Topic: App & System Services SubTopic: General Tags:
Aug ’24
Reply to Struggling to Notarize a JUCE Plugin Installer
This is the output of the Notary Log Report logFormatVersion: 1, jobId: 2a30b849-cc09-4d1d-b29f-092c2b230bc0, status: Invalid, statusSummary: Archive contains critical validation errors, statusCode: 4000, archiveFilename: TradeMarkEQ - All 8-9-24, 8.42u202fPM.xcarchive.zip, uploadDate: 2024-08-10T01:45:51.207Z, sha256: 1ec7c7d8ce4ce7c96ce03a60a07433cbf83124ba6ae6021f42524849cc6dc90a, ticketContents: null, issues: [ { severity: error, code: null, path: TradeMarkEQ - All 8-9-24, 8.42u202fPM.xcarchive.zip/TradeMarkEQ - All 8-9-24, 8.42u202fPM.xcarchive/Products/Users/NAME/Library/Audio/ Plug-Ins/VST3/TradeMarkEQ.vst3/Contents/MacOS/TradeMarkEQ, message: The binary is not signed with a valid Developer ID certificate., docUrl: https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution/ resolving_common_notarization_issues#3087721, architecture: x86_64 }, { severity: error, code: null, path: TradeMarkEQ - All 8-9-24, 8.42u202fPM.xcarchive.zip/TradeMarkEQ - All 8-9-24, 8.42u202f
Aug ’24
Reply to Command CodeSign failed with a nonzero exit code
Like many Xcode defects, this has been around for a while. If you are reading this now, consider yourself lucky you have not hit this before. See Stack Overflow for more bread crumbs, unfortunately no root cause hence no reliable workaround yet. https://stackoverflow.com/questions/52421999/xcode-10-command-codesign-failed-with-a-nonzero-exit-code
Aug ’24