Simulator works fine, Actual iPhone show black blank screen

291 views
Skip to first unread message

Jeffrey Padfield

unread,
Jul 30, 2017, 12:58:29 AM7/30/17
to Kivy users support
After a days work and debugging i was finally able to get kivy-ios to compile and open into xcode. Xcode will compile and push the app to my personal iPhone 7 Plus just phone but won't show the label I have in my KivyTest.kv file. Running the python program through python works and it is displayed, running it through xcode and a iphone Simulator for iPhone 7 Plus works just fine. On the actual iPhone though is just a black blank screen.

The console puts out the following when going into my personal iPhone 7 Plus

2017-07-29 22:45:31.207058-0600 kivytest[262:7544] [DYMTLInitPlatform] platform initialization successful

2017-07-29 22:45:31.513538-0600 kivytest[262:7415] Available orientation: KIVY_ORIENTATION=LandscapeLeft LandscapeRight Portrait PortraitUpsideDown

2017-07-29 22:45:31.513625-0600 kivytest[262:7415] PythonHome is: /var/containers/Bundle/Application/4CE2A49C-150F-42CA-84D7-50FB19EEDC54/kivytest.app

2017-07-29 22:45:31.515240-0600 kivytest[262:7415] Initializing python

2017-07-29 22:45:31.602884-0600 kivytest[262:7415] Running main.pyo: /var/containers/Bundle/Application/4CE2A49C-150F-42CA-84D7-50FB19EEDC54/kivytest.app/YourApp/main.pyo

[INFO   ] [Kivy        ] v1.10.0

[INFO   ] [Python      ] v2.7.1 (r271:86832, Jul 29 2017, 21:42:14) 

[GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.42)]

[INFO   ] [Factory     ] 194 symbols loaded

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

[INFO   ] [OSC         ] using <thread> for socket

[INFO   ] [Window      ] Provider: sdl2

2017-07-29 22:45:31.928129-0600 kivytest[262:7415] Metal GPU Frame Capture Enabled

2017-07-29 22:45:31.928519-0600 kivytest[262:7415] Metal API Validation Enabled

2017-07-29 22:45:31.954183-0600 kivytest[262:7415] libMobileGestalt MobileGestaltSupport.m:153: pid 262 (kivytest) does not have sandbox access for frZQaeyWLUvLjeuEK43hmg and IS NOT appropriately entitled

2017-07-29 22:45:31.954374-0600 kivytest[262:7415] libMobileGestalt MobileGestalt.c:550: no access to InverseDeviceID (see <rdar://problem/11744455>)

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

[INFO   ] [GL          ] Backend used <sdl2>

[INFO   ] [GL          ] OpenGL version <OpenGL ES 2.0 Metal - 39.9>

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

[INFO   ] [GL          ] OpenGL renderer <Apple A10 GPU>

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

[INFO   ] [GL          ] Shading version <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

[INFO   ] [Base        ] Start application main loop

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

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

Message from debugger: Terminated due to signal 9


 The following is throught eh Xcode iPhone 7 Plus Simulator:

2017-07-29 22:54:57.003 kivytest[83688:1466531] Available orientation: KIVY_ORIENTATION=LandscapeLeft LandscapeRight Portrait PortraitUpsideDown

2017-07-29 22:54:57.003 kivytest[83688:1466531] PythonHome is: /Users/Tardis/Library/Developer/CoreSimulator/Devices/562A5A42-5E90-4224-9592-B88FD0A02224/data/Containers/Bundle/Application/59FAA987-8608-4A78-ABD4-8DA38828275B/kivytest.app

2017-07-29 22:54:57.003 kivytest[83688:1466531] Initializing python

2017-07-29 22:54:57.030 kivytest[83688:1466531] Running main.pyo: /Users/Tardis/Library/Developer/CoreSimulator/Devices/562A5A42-5E90-4224-9592-B88FD0A02224/data/Containers/Bundle/Application/59FAA987-8608-4A78-ABD4-8DA38828275B/kivytest.app/YourApp/main.pyo

[INFO   ] [Kivy        ] v1.10.0

[INFO   ] [Python      ] v2.7.1 (r271:86832, Jul 29 2017, 21:40:34) 

[GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.42)]

[INFO   ] [Factory     ] 194 symbols loaded

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

[INFO   ] [Text        ] Provider: sdl2

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

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

[INFO   ] [OSC         ] using <thread> for socket

[INFO   ] [Window      ] Provider: sdl2

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

[INFO   ] [GL          ] Backend used <sdl2>

[INFO   ] [GL          ] OpenGL version <OpenGL ES 2.0 APPLE-14.0.15>

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

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

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

[INFO   ] [GL          ] Shading version <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

[INFO   ] [Base        ] Start application main loop

[INFO   ] [GL          ] NPOT texture support is available


As they both have the dlopen error and the simulator works just fine. I'm guessing its 

2017-07-29 22:45:31.954183-0600 kivytest[262:7415] libMobileGestalt MobileGestaltSupport.m:153: pid 262 (kivytest) does not have sandbox access for frZQaeyWLUvLjeuEK43hmg and IS NOT appropriately entitled

2017-07-29 22:45:31.954374-0600 kivytest[262:7415] libMobileGestalt MobileGestalt.c:550: no access to InverseDeviceID (see <rdar://problem/11744455>)


Those lines I should be looking at as they are not outputted in the simulator console. Any help would be appreciated. 
 

Jeffrey Padfield

unread,
Jul 30, 2017, 10:55:07 AM7/30/17
to Kivy users support
After some sleep and some more research this morning I was able to fix my problem. I had to add the following to my python project to get it to work

presentation = Builder.load_file("KivyTest.kv")

and

this inside my main class

def build(self):
 
return presentation

Once I added those three lines it started to work just fine on my iPhone with no more errors.
Reply all
Reply to author
Forward
0 new messages