On 23/08/2015 8:00 pm, pythonmac-sig-requ...@python.org wrote: > > Subject: > Re: [Pythonmac-SIG] codesigning py2app/wxPython app failing > From: > Kevin Walzer <k...@codebykevin.com> > Date: > 23/08/2015 1:08 pm > > To: > pythonmac-sig@python.org > > > On 8/22/15 10:44 PM, Brendan Simon (eTRIX) wrote: >> >> $ codesign -vvvv -f --deep -s <mycredentials>dist/<myapp>.app >> > The "deep" flag doesn't work anymore. Pretty much every binary object > must be signed. > > Here's what I use to codesign one of my apps (the specific example is > Perl, my current Python project is awaiting an update, but I'll roll > something similar for the Python project). > > First I start with the dylibs: > > find build/FileMorph.app -type f -name "*.bundle" -exec codesign > --verbose --signature-size 9400 -f -s "My Credentials" {} \; > find build/FileMorph.app -type f -name "*.dylib" -exec codesign > --verbose --signature-size 9400 -f -s "My Credentials" {} \; > > Next, the frameworks and executables: > > codesign --verbose --signature-size 9400 -f -s "My Credentials" > build/FileMorph.app/Contents/Frameworks/Tk.framework/Versions/8.6/Resources/Wish.app/Contents/MacOS/Wish > codesign --verbose --signature-size 9400 -f -s "My Credentials" > build/FileMorph.app/Contents/Frameworks/Tk.framework/Versions/Current > codesign --verbose --signature-size 9400 -f -s "My Credentials" > build/FileMorph.app/Contents/Frameworks/Tcl.framework/Versions/Current > codesign --verbose --signature-size 9400 -f -s "My Credentials" > build/FileMorph.app/Contents/MacOS/perl > > Finally, the app itself: > > codesign --signature-size 9400 -f -s "My Credentials" --verbose=2 > build/FileMorph.app
Thanks for the help :) Unfortunately I haven't made any progress :( I've tried singing some of the binaries and frameworks from a bash script (and manually) but I still get errors :( -------- export CODESIGN_ALLOCATE="/usr/bin/codesign_allocate" #export CODESIGN_ALLOCATE="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate" $ find dist/<myapp>.app -type f -name "*.dylib" dist/<myapp>.app/Contents/Frameworks/libncursesw.5.dylib dist/<myapp>.app/Contents/Frameworks/libwx_osx_cocoau-3.0.0.2.0.dylib $ find dist/<myapp>.app -type f -name "*.dylib" -exec codesign -vvvv --signature-size 9400 -f -s <mycred> {} \; /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate: for architecture x86_64 object: <src>/dist/<myapp>.app/Contents/Frameworks/libncursesw.5.dylib malformed object (load command 3 cmdsize not a multiple of 8) dist/<myapp>.app.app/Contents/Frameworks/libncursesw.5.dylib: code failed to satisfy specified code requirement(s) dist/<myapp>.app.app/Contents/Frameworks/libwx_osx_cocoau-3.0.0.2.0.dylib: code failed to satisfy specified code requirement(s) # codesign <path>/Python.framework/Versions/Current/Python /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate: for architecture x86_64 object: /Users/brendan/eclipse-workspaces/sureshotgps/SA-v5.6/src/dist/SureAnalysis-signed-ss.app/Contents/Frameworks/Python.framework/Versions/2.7/Python malformed object (load command 3 cmdsize not a multiple of 8) # codesign <path>/Python.framework/Versions/Current dist/SureAnalysis-signed-ss.app/Contents/Frameworks/Python.framework/Versions/Current/Python: code failed to satisfy specified code requirement(s) /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate: for architecture x86_64 object: /Users/brendan/eclipse-workspaces/sureshotgps/SA-v5.6/src/dist/SureAnalysis-signed-ss.app/Contents/Frameworks/Python.framework/Versions/2.7/Python malformed object (load command 3 cmdsize not a multiple of 8) # codesign <path>/Python.framework/Versions/Current dist/<myapp>..app/Contents/Frameworks/Python.framework/Versions/Current: code failed to satisfy specified code requirement(s) /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate: for architecture x86_64 object: <src>/dist/<myapp>.app/Contents/MacOS/python malformed object (load command 10 cmdsize not a multiple of 8) # codesign <path>/Contents/MacOS/python dist/SureAnalysis-signed-ss.app/Contents/MacOS/python: code failed to satisfy specified code requirement(s) # codesign dist/<myapp>.app dist/<myapp>..app: code object is not signed at all In subcomponent: <src>/dist/<myapp>..app/Contents/Frameworks/libncursesw.5.dylib -------- Is this a codesign_allocate issue? The codesign_allocate tool in /usr/bin does NOT ask me for username and password, however if I use the one in /Applications/Xcode.app/ then a dialog pops up a number of times asking me for username and password. That looks promising by I still get the following error. "the codesign_allocate helper tool cannot be found or used" So I still with /usr/bin/codesign_allocate Any other suggestions for me to try ??? Thanks, Brendan.
_______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org https://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG