kivy / kivy-ios

Toolchain for compiling Python / Kivy / other libraries for iOS
https://kivy.org/docs/guide/packaging-ios.html
MIT License
758 stars 238 forks source link

Asset validation failed Invalid bundle structure. The “theweatherreporterapp.app/lib/python3.9/site-packages/charset_normalizer/md__mypyc.cpython-39-darwin.so” binary file is not permitted. Your app cannot contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. For details, visit: https://developer.apple.com/documentation/bundleresources/placing_content_in_a_bundle (ID: eb2a7a62-515c-459b-a222-5330e609551d) #773

Closed pythonsus closed 1 year ago

pythonsus commented 1 year ago

Versions

Describe the bug when acrhive to app store connect getting Asset validation failed Invalid bundle structure. The “theweatherreporterapp.app/lib/python3.9/site-packages/charset_normalizer/md__mypyc.cpython-39-darwin.so” binary file is not permitted. Your app cannot contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. For details, visit: https://developer.apple.com/documentation/bundleresources/placing_content_in_a_bundle (ID: eb2a7a62-515c-459b-a222-5330e609551d)

To Reproduce use kivy install git and pip then toolchain build python3 kivy pillow then toolchain pip install pyowm,kivymd then toolchain create then remove libfreetype.a file then archive to app store connect then get Asset validation failed Invalid bundle structure. The “theweatherreporterapp.app/lib/python3.9/site-packages/charset_normalizer/md__mypyc.cpython-39-darwin.so” binary file is not permitted. Your app cannot contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. For details, visit: https://developer.apple.com/documentation/bundleresources/placing_content_in_a_bundle (ID: eb2a7a62-515c-459b-a222-5330e609551d)

Expected behavior app should go to testfilght

Logs

Asset validation failed
Invalid bundle structure. The “theweatherreporterapp.app/lib/python3.9/site-packages/charset_normalizer/md__mypyc.cpython-39-darwin.so” binary file is not permitted. Your app cannot contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. For details, visit: https://developer.apple.com/documentation/bundleresources/placing_content_in_a_bundle (ID: eb2a7a62-515c-459b-a222-5330e609551d)

Screenshots

Additional context Add any other context about the problem here.

misl6 commented 1 year ago

You should use the following to remove the broken dependency ( I guess you now installed chardet as an alternative ) :

toolchain pip uninstall charset-normalizer -y

pythonsus commented 1 year ago

ok

pythonsus commented 1 year ago

will try

pythonsus commented 1 year ago

[DEBUG ] Found existing installation: charset-normalizer 3.0.1 [DEBUG ] Not uninstalling charset-normalizer at /Users/suhaan/Documents/kivy-ios/dist/root/python3/lib/python3.9/site-packages, outside environment /Users/suhaan/Documents/kivy-ios/venv [DEBUG ] Can't uninstall 'charset-normalizer'. No files were found to uninstall.

pythonsus commented 1 year ago

nvm fixed had to start a new env