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 for libnpyrandom.a and libnpymath.a #814

Closed kschepps closed 1 year ago

kschepps commented 1 year ago

I'm trying to build a new app using Xcode 14.3 and Mac Ventura. I am experiencing this bug, https://github.com/kivy/kivy-ios/issues/787, and I need to delete the libfreetype every time I recompile the app. However, I got a fully working app, but I'm having issues distributing the app. I can't find any info on how to resolve it.

It's complaining about two libraries, math and random. Both are in the numpy folder. I tried deleting them just like i did for freetype, but that produced a lot of errors when re-building the app.

When I try to distribute the app, I get these two errors: × Asset validation failed Invalid bundle structure. The "myapp.app/lib/python3.9/site-packages/numpy/random/lib/ libnpyrandom.a" 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: a29e7c8e-717-463b-b977-77b84f728898)

× Asset validation failed Invalid bundle structure. The "myapp.app/lib/python3.9/site-packages/numpy/core/lib/ libnpymath.a" 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: 42e9d725-dafd-4e8c-8d84-9a6682b1927f)

kschepps commented 1 year ago

Nevermind... I fixed this by updating all the packages and rebuilding the toolchain from scratch. This is like the 3rd Kivy related issue that was fixed by simply updating something.