Got dlopen error on Foundation

97 views
Skip to first unread message

Jean-Sebastien Provost

unread,
Aug 16, 2020, 2:49:31 PM8/16/20
to Kivy users support
Dear Experts,

It seems like I'm having a problem that was seen before. I was wondering if it got solved; I didn't see any solution so far.
My app got built successfully in Xcode10.1, but when the simulator appears, the screen turns black and I got this error message:

Got dlopen error on Foundation: dlopen(/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation, 1): no suitable image found.  Did find:
    /System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation: mach-o, but not built for iOS simulator

I did a little bit of research and some people were saying that it's a known issue with the simulator, but that it shouldn't prevent to run on a device. So I plugged in my device and got the same behavior: my iPhone screen turned black and nothing happened.

Any ideas on how to fix that?

I'm using Xcode10.1, with a Mac with High Sierra 10.13.6.

ZenCODE

unread,
Aug 20, 2020, 1:55:26 PM8/20/20
to Kivy users support
Hi

The step would be to ensure you are using the latest version of kivy-ios.


Build everything from scratch using the latest checkout and if you still have an issue, you might need to update XCode. That should work? Please post back either way.

prov...@gmail.com

unread,
Aug 23, 2020, 10:21:20 AM8/23/20
to Kivy users support
Hi,
I started everything from scratch. First, I've upgraded to OSX Mojave 10.14.6 and I got Xcode 11.2
I'm running everything with Python 3.7.7.
Then I've created a new folder to put in my kivy and python files and I started:
1) python3 -m venv venv
2) . venv/bin/activate
3) pip3 install kivy-ios
4) xcode-select --install
5) brew reinstall autoconf automake libtool pkg-config
6) brew link libtool
7) pip3 install Cython==0.29.17 (If I don't do this, then the following step will crash)
8) toolchain build python3 openssl kivy numpy
9) toolchain pip install pymysql (I need this package too)
10) sudo toolchain create myApp <path>
11) sudo toolchain create Touchtracer <path_to_touchertracer>
12) Make sure to change the permissions for the files in my kivy-ios app to read and write (same thing for the Touchtracer app).
13) open myApp-ios/myApp.xcodeproj/
14) Build and get the same error as above :-(

Kevin Wong

unread,
Nov 14, 2020, 9:52:57 AM11/14/20
to Kivy users support
Hello, I got the problem. My output in Xcode as below.

I am using macOS Catalina version 10.15.7 and Xcode 12.0.1.

Any idea how to fix that?

2020-11-14 22:29:18.596815+0800 keemun[1484:46696] Available orientation: KIVY_ORIENTATION=Portrait

2020-11-14 22:29:18.597002+0800 keemun[1484:46696] Initializing python

2020-11-14 22:29:18.846378+0800 keemun[1484:46696] Running main.py: /Users/kevinwong/Library/Developer/CoreSimulator/Devices/26A4782A-CFAC-4A6D-BEE2-98E1C24CF1D1/data/Containers/Bundle/Application/3B85FA9F-53B2-4FFC-8A12-D750AFF3DD80/keemun.app/YourApp/main.py

[INFO   ] [Kivy        ] v2.0.0rc1, git-e2326b4, 20201113

[INFO   ] [Kivy        ] Installed at "/Users/kevinwong/Library/Developer/CoreSimulator/Devices/26A4782A-CFAC-4A6D-BEE2-98E1C24CF1D1/data/Containers/Bundle/Application/3B85FA9F-53B2-4FFC-8A12-D750AFF3DD80/keemun.app/lib/python3.8/site-packages/kivy/__init__.py"

[INFO   ] [Python      ] v3.8.2 (default, Nov 13 2020, 15:56:31) 

[Clang 12.0.0 (clang-1200.0.32.2)]

[INFO   ] [Python      ] Interpreter at "/Users/kevinwong/Library/Developer/CoreSimulator/Devices/26A4782A-CFAC-4A6D-BEE2-98E1C24CF1D1/data/Containers/Bundle/Application/3B85FA9F-53B2-4FFC-8A12-D750AFF3DD80/keemun.app/keemun"

[INFO   ] [Factory     ] 184 symbols loaded

[INFO   ] [Image       ] Providers: img_imageio, img_tex (img_dds, img_sdl2, img_ffpyplayer, img_pil, img_gif ignored)

[INFO   ] [Text        ] Provider: sdl2

[INFO   ] [Window      ] Provider: sdl2

[INFO   ] [GL          ] Using the "OpenGL ES 2" graphics system

[INFO   ] [GL          ] Backend used <sdl2>

[INFO   ] [GL          ] OpenGL version <b'OpenGL ES 2.0 APPLE-18.0.31'>

[INFO   ] [GL          ] OpenGL vendor <b'Apple Inc.'>

[INFO   ] [GL          ] OpenGL renderer <b'Apple Software Renderer'>

[INFO   ] [GL          ] OpenGL parsed version: 2, 0

[INFO   ] [GL          ] Shading version <b'OpenGL ES GLSL ES 1.00'>

[INFO   ] [GL          ] Texture max size <4096>

[INFO   ] [GL          ] Texture max units <8>

[INFO   ] [Window      ] auto add sdl2 input provider

[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked

Got dlopen error on Foundation: dlopen(/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation, 1): no suitable image found.  Did find:

/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation: mach-o, but not built for platform iOS-sim

Got fallback dlopen error on Foundation: dlopen(/Groups/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation, 1): image not found


prov...@gmail.com 在 2020年8月23日 星期日下午10:21:20 [UTC+8] 的信中寫道:

ZenCODE

unread,
Nov 17, 2020, 2:37:00 PM11/17/20
to Kivy users support
This error is is thrown as the iOS simulator does not support one of architectures included in the binary, so it's usually nothing to worry about. Your app should still work unless another error is thrown?
Reply all
Reply to author
Forward
0 new messages