kivy / kivy-ios

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

Got dlopen error on Foundation #896

Closed CrackedCode7 closed 2 months ago

CrackedCode7 commented 3 months ago

Versions

Describe the bug My App was able to run on both the simulator and my own iOS device until I added Images to my .kv file. Now I am getting this error within Xcode. Is there a reason Foundation would not be included in the Frameworks when building with toolchain?

To Reproduce Create a new project using toochain create projectname /path/to/project. Set up main.py and AppName.kv file to show a single image on the screen. Open Xcode project and run with either the simulator or build to a local device.

Expected behavior I expect that when building the Foundation framework would be included by toolchain be default if needed.

Logs

Got dlopen error on Foundation: dlopen(/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation, 0x0001): tried: '/Users/_redacted_/Library/Developer/Xcode/DerivedData/testproj-cxgmtbdxuvtcqwfrfxvdqrfvdjvy/Build/Products/Debug-iphonesimulator/Foundation.framework/Versions/Current/Foundation' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_21C62/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.2.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation' (no such file),
github-actions[bot] commented 2 months ago

👋 We use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project. For troubleshooting advice and other frequently asked questions, consult the latest Kivy for iOS FAQ. Let us know if this comment was made in error, and we'll be happy to reopen the issue.

sumanthanumolu commented 2 months ago

did this resolved, I am having exact same issue:

Got dlopen error on Foundation: dlopen(/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation, 0x0001): tried: '/Users/jahna/Library/Developer/Xcode/DerivedData/villagers_goods-bmgxikubanqmwuhetawxtarwzhzu/Build/Products/Debug-iphonesimulator/Foundation.framework/Versions/Current/Foundation' (no such file),