Hi @meaton, I'm reproducing this issue by running
Code Block $ codesign -f -s "Apple Development: <myappacountemail> (myaccountid)" dist/MyAppName.app --deep |
Warning: unable to build chain to self-signed root for signer "Apple Development: <myappacountemail> (myaccountid)" |
dist/MyAppName.app: errSecInternalComponent |
Where MyAppName is application developed in the PyQt5 framework with PyInstaller as the distribution bundler. According to the PyInstaller documentation, I set the following:
Code Block python3 -m PyInstaller ... |
--osx-bundle-identifier= "Apple Development: <myappacountemail> (myaccountid)" |
Not sure if this helps but my .spec file includes this bundle instruction:
Code Block # -*- mode: python ; coding: utf-8 -*- |
# MyAppName.spec -> as input for PyInstaller |
... |
app = BUNDLE(exe, |
name='MyAppName.app', |
icon='res/heartbeat.ico', |
bundle_identifier='com.guymeyer.myappname.ui', |
info_plist={ |
'NSPrincipalClass': 'NSApplication', |
'NSAppleScriptEnabled': False, |
'CFBundleDocumentTypes': [{ |
'CFBundleTypeName': 'py', |
'CFBundleTypeIconFile': 'res/heartbeat.ico', |
'LSItemContentTypes': ['com.guymeyer.myappname.ui'], |
'LSHandlerRank': 'Owner' |
}] |
}) |
To outline the issue better.. I'd like to distribute my app and require codesigning for installation on other macs. The program runs correctly but the icon does not appear in the launch-bar and codesigning fails consistently. I am quite new to codesigning and likely missing something 'obvious'.. Would really appreciate your help!
Tried to follow this links for help:
https://github.com/pyinstaller/pyinstaller/wiki/Recipe-OSX-Code-SigningI'd be happy to provide more information regarding this issue.