I have created a test app using python3.9.12 version and pyinstaller version 5.0.1. The .pkg is getting created successfully but during runtime getting the below error:
ImportError: dlopen(/Applications/TestApp/Contents/MacOS/lib-dynload/binascii.cpython-39-darwin.so, 2): Library not loaded: /opt/local/lib/libz.1.dylib
Referenced from: /Applications/TestApp/Contents/MacOS/lib-dynload/binascii.cpython-39-darwin.so
Reason: no suitable image found. Did find: /opt/local/lib/libz.1.dylib: code signature in (/opt/local/lib/libz.1.dylib) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.
I have tried disabling library validation, it dint work for me. are there any solution available for this?