Xcode - "Unable to open main.py, abort."

Hello all,


I try develop an simple app for my tablet, but I have some problems with Xcode.

The app is written in kivy (it runs well both on python 2 and 3).

I had some permissions issues but solved it with Build Phases -> Run Script ->

rsync -avPEn --delete

Now when i try to run the app on simulator, it stays succeded, but then i get black screen for few second and folowing error:


2019-04-25 14:58:30.902305+0200 penproject[4549:99657] libMobileGestalt MobileGestalt.c:890: MGIsDeviceOneOfType is not supported on this platform.

2019-04-25 14:58:31.188795+0200 penproject[4549:99657] [framework] CUIThemeStore: No theme registered with id=0

2019-04-25 14:58:31.778856+0200 penproject[4549:99657] Available orientation: KIVY_ORIENTATION=LandscapeLeft LandscapeRight Portrait PortraitUpsideDown

2019-04-25 14:58:31.779267+0200 penproject[4549:99657] PythonHome is: /Users/davidarchibald/Library/Developer/CoreSimulator/Devices/6840F9A1-01A3-4C9B-88E4-F645482929B0/data/Containers/Bundle/Application/A34340B4-F2C5-450C-9F5E-ACD5F82AF3E9/penproject.app

2019-04-25 14:58:31.782511+0200 penproject[4549:99657] Initializing python

2019-04-25 14:58:31.962334+0200 penproject[4549:99657] Running main.py: (null)

2019-04-25 14:58:31.962547+0200 penproject[4549:99657] Unable to open main.py, abort.

2019-04-25 14:58:31.965485+0200 penproject[4549:99657] Leaving


I've tried reinstalling Xcode, uptading Xcode, reinstalling python and kivi. Could someone please help me?