question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"code object is not signed at all In subcomponent" error after High Sierra update.

See original GitHub issue

Hi there, I have updated my system to High Sierra a few days ago, and now I can’t sign my apps anymore.

I’ve tested everything I could think off:

  • updated certs
  • updated provisioning
  • updated dependencies
  • delete everything and pull from scratch
  • I will try to get a Sierra MBP to test the signing, to be sure it’s really coming from HighSierra.

Always get the same error on the three Electron helpers.

  • MyApp.app/Contents/Frameworks/MyApp Helper EH.app/Contents/MacOS/MyApp Helper EH
  • MyApp.app/Contents/Frameworks/MyApp Helper NP.app/Contents/MacOS/MyApp Helper NP
  • MyApp.app/Contents/Frameworks/MyApp Helper.app/Contents/MacOS/MyApp Helper

I don’t know what to do anymore.

Here’s the full error:

../release/MyApp-mas-x64/MyApp.app/Contents/Frameworks/MyApp Helper.app/: code object is not signed at all
In subcomponent: /Users/yoann/dev/myapp/release/MyApp-mas-x64/MyApp.app/Contents/Frameworks/MyApp Helper.app/Contents/MacOS/MyApp Helper

I’ve used a simple codesign script to pinpoint the problem :

#!/bin/bash

# Name of your app.
APP="MyApp"
# The path of your app to sign.
APP_PATH="../release/MyApp-mas-x64/MyApp.app"
# The path to the location you want to put the signed package.
RESULT_PATH="../release/$APP.pkg"
# The name of certificates you requested.
APP_KEY="3rd Party Mac Developer Application: Yoann MOINET (REDACTED)"
INSTALLER_KEY="3rd Party Mac Developer Installer: Yoann MOINET (REDACTED)"

FRAMEWORKS_PATH="$APP_PATH/Contents/Frameworks"

codesign -s "$APP_KEY" -f --entitlements "../build/child.plist" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Electron Framework"
codesign -s "$APP_KEY" -f --entitlements "../build/child.plist" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Libraries/libffmpeg.dylib"
codesign -s "$APP_KEY" -f --entitlements "../build/child.plist" "$FRAMEWORKS_PATH/Electron Framework.framework/Versions/A/Libraries/libnode.dylib"
codesign -s "$APP_KEY" -f --entitlements "../build/child.plist" "$FRAMEWORKS_PATH/Electron Framework.framework"
codesign -s "$APP_KEY" -f --entitlements "../build/child.plist" "$FRAMEWORKS_PATH/$APP Helper.app/Contents/MacOS/$APP Helper"
codesign -s "$APP_KEY" -f --entitlements "../build/child.plist" "$FRAMEWORKS_PATH/$APP Helper.app/"
codesign -s "$APP_KEY" -f --entitlements "../build/child.plist" "$FRAMEWORKS_PATH/$APP Helper EH.app/Contents/MacOS/$APP Helper EH"
codesign -s "$APP_KEY" -f --entitlements "../build/child.plist" "$FRAMEWORKS_PATH/$APP Helper EH.app/"
codesign -s "$APP_KEY" -f --entitlements "../build/child.plist" "$FRAMEWORKS_PATH/$APP Helper NP.app/Contents/MacOS/$APP Helper NP"
codesign -s "$APP_KEY" -f --entitlements "../build/child.plist" "$FRAMEWORKS_PATH/$APP Helper NP.app/"
codesign -s "$APP_KEY" -f --entitlements "../build/child.plist" "$APP_PATH/Contents/MacOS/$APP"
codesign -s "$APP_KEY" -f --entitlements "../build/parent.plist" "$APP_PATH"

But the output is as follow:

../release/MyApp-mas-x64/MyApp.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework: replacing existing signature
../release/MyApp-mas-x64/MyApp.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libffmpeg.dylib: replacing existing signature
../release/MyApp-mas-x64/MyApp.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib: replacing existing signature
../release/MyApp-mas-x64/MyApp.app/Contents/Frameworks/Electron Framework.framework: replacing existing signature
../release/MyApp-mas-x64/MyApp.app/Contents/Frameworks/MyApp Helper.app/Contents/MacOS/MyApp Helper: code object is not signed at all
In subcomponent: /Users/yoann/dev/myapp/release/MyApp-mas-x64/MyApp.app/Contents/Frameworks/MyApp Helper.app/Contents/MacOS/MyApp Helper
../release/MyApp-mas-x64/MyApp.app/Contents/Frameworks/MyApp Helper.app/: code object is not signed at all
In subcomponent: /Users/yoann/dev/myapp/release/MyApp-mas-x64/MyApp.app/Contents/Frameworks/MyApp Helper.app/Contents/MacOS/MyApp Helper
../release/MyApp-mas-x64/MyApp.app/Contents/Frameworks/MyApp Helper EH.app/Contents/MacOS/MyApp Helper EH: code object is not signed at all
In subcomponent: /Users/yoann/dev/myapp/release/MyApp-mas-x64/MyApp.app/Contents/Frameworks/MyApp Helper EH.app/Contents/MacOS/MyApp Helper EH
../release/MyApp-mas-x64/MyApp.app/Contents/Frameworks/MyApp Helper EH.app/: code object is not signed at all
In subcomponent: /Users/yoann/dev/myapp/release/MyApp-mas-x64/MyApp.app/Contents/Frameworks/MyApp Helper EH.app/Contents/MacOS/MyApp Helper EH
../release/MyApp-mas-x64/MyApp.app/Contents/Frameworks/MyApp Helper NP.app/Contents/MacOS/MyApp Helper NP: code object is not signed at all
In subcomponent: /Users/yoann/dev/myapp/release/MyApp-mas-x64/MyApp.app/Contents/Frameworks/MyApp Helper NP.app/Contents/MacOS/MyApp Helper NP
../release/MyApp-mas-x64/MyApp.app/Contents/Frameworks/MyApp Helper NP.app/: code object is not signed at all
In subcomponent: /Users/yoann/dev/myapp/release/MyApp-mas-x64/MyApp.app/Contents/Frameworks/MyApp Helper NP.app/Contents/MacOS/MyApp Helper NP
../release/MyApp-mas-x64/MyApp.app/Contents/MacOS/MyApp: code object is not signed at all
In subcomponent: /Users/yoann/dev/myapp/release/MyApp-mas-x64/MyApp.app/Contents/MacOS/MyApp
../release/MyApp-mas-x64/MyApp.app: code object is not signed at all
In subcomponent: /Users/yoann/dev/myapp/release/MyApp-mas-x64/MyApp.app/Contents/MacOS/MyApp

Please note that my app has a ê in its name, if that could be relevent. But I never had any issue with this before High Sierra update.

Thank you for your help.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
yoannmoinetcommented, Nov 8, 2017

Got it to work.

It was indeed ê. I copied another ê displayed in the Finder, and used it in my app.

Apparently, ê isn’t supported by codesign, but is. Should have figured this out 🙃

It is now working.

1reaction
sethlucommented, Nov 10, 2017

@yoannmoinet No worries! 👍 And I’m not very sure… But I’ll find some time to try to devise a workaround for unicode normalization. Let’s keep the issue open for some time until a fix is available.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"code object is not signed at all In subcomponent ... - GitHub
Hi there, I have updated my system to High Sierra a few days ago, and now I can't sign my apps anymore. I've...
Read more >
macos - How do you fix "code object is not signed at all In ...
For me this problem was resolved by a simple "clean build folder" action, keyboard shortcut: shift+option ...
Read more >
Getting "code object is not signed… | Apple Developer Forums
app/Contents/Java/lib/libjcocoa.dylib has following signing error(s): code object is not signed at all In architecture: x86_64 . Refer to the Code Signing and ...
Read more >
How To Fix "Code Object Is Not Signed At All In ... - ADocLib
How do you fix code object is not signed at all In subcomponent: in Xcode 6 Mac OS X Yosemite or Mavericks? Solution:...
Read more >
MacOS Coding Signing not working - OpenFrameworks Forum
XXX.app: code object is not signed at all In subcomponent: ... I am compiling on Sierra and app crashes on High Sierra and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found