I created a python application using py2app and am able to code sign almost all the binaries using the command
However there are some binaries that are located in a directory in a zip file name.app/Contents/Resouces/lib/python37.zip/PIL/.dylibs
The problem is that these binaries don't get signed because they are located in a zip file. I have tried using Finder to unzip them and zip them back up so that I can code sign those binaries, but unzipping and zipping through Finder causes the program to no longer find the files in the zip.
Any help would be appreciated.
Code Block find "${NAME}.app" -iname '*.so' -or -iname '*.dylib'| while read libfile; do codesign -s "${IDENTITY}" --timestamp -o runtime --entitlements entitlements.plist "${libfile}"; done;
However there are some binaries that are located in a directory in a zip file name.app/Contents/Resouces/lib/python37.zip/PIL/.dylibs
The problem is that these binaries don't get signed because they are located in a zip file. I have tried using Finder to unzip them and zip them back up so that I can code sign those binaries, but unzipping and zipping through Finder causes the program to no longer find the files in the zip.
Code Block Fatal Python error: initfsencoding: unable to load the file system codec ModuleNotFoundError: No module named 'encodings' Current thread 0x000000010bb5ee00 (most recent call first): Abort trap: 6
Any help would be appreciated.
Use unzip -t to print a table of contents for both the original zip archive and the new one you created. It’s likely that there’s some significant difference them, probably related to the root path.unzipping and zipping through Finder causes the program to no longer
find the files in the zip.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"