Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got dlopen error on Foundation #896

Closed
EvDev7 opened this issue Mar 6, 2024 · 4 comments
Closed

Got dlopen error on Foundation #896

EvDev7 opened this issue Mar 6, 2024 · 4 comments
Labels

Comments

@EvDev7
Copy link

EvDev7 commented Mar 6, 2024

Versions

  • Python : 3.12.2
  • MacOS version : 14.2.1
  • XCode Version : 15.1
  • Cython version : 3.0.0

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),
@EvDev7 EvDev7 changed the title GotGot dlopen error on Foundation Got dlopen error on Foundation Mar 6, 2024
Copy link

👋 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.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 14, 2024
@sumanthanumolu
Copy link

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),

@HeRo002
Copy link

HeRo002 commented Dec 15, 2024

I always see this error message, when I deploy a Python-Kivy app on iOS using Xcode on my Mac. Also after I reinstalled MacOS from scratch a few months ago.
But what is the significance of this error? And why is it not a bug, but a "support issue"?
Here is my version of the error:

Got dlopen error on Foundation: dlopen(/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation, 0x0001): tried: '/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation' (no such file), '/private/preboot/Cryptexes/OS/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation' (no such file), '/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation' (no such file, not in dyld cache)
Got fallback dlopen error on Foundation: dlopen(/Groups/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation, 0x0001): tried: '/Groups/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation' (no such file), '/private/preboot/Cryptexes/OS/Groups/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation' (no such file), '/Groups/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation' (no such file)

@HeRo002
Copy link

HeRo002 commented Dec 15, 2024

This is the conclusion ChatGPT gives me on the issue:

Conclusion

The error is likely benign if your app works as expected. However, it may point to a minor configuration or compatibility issue that could become more significant in the future. Addressing it preemptively by ensuring proper framework linking and up-to-date tools can help maintain long-term stability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants