Hi, I'm trying to build and package a script and its .pyui file into a standalone .ipa file in Xcode. I have Apple developer provisioning profile and have successfully been using the Pythonista v1.5 template to create standalone apps where any UI code is done in the main script file.
I want to create a standalone app from UI built with the UI Editor. I am able to build and export my target .ipa and install it on a jailbroken device. I have my Python script named Script.py and my UI file named Script.pyui. No matter how I define a path for the the pyui file, the call to ui.load_view() consistently fails and I see the following error message on my device:
"Error (line nn): UI file could not be loaded" The nn will be the actual line number that the ui.load_view() call is in my script.
I presume this error message is coming from the ui module itself. Any suggestions on how to get around this problem to load the UI from a file in a standalone app? The script and UI file load and run fine within PYthonista itself.
I have tried the following, without luck for a file actually named Script.pyui and called from the script called Script.py:
ui.load_view()
ui.load_view("Script")
ui.load_view(".\Script")
ui.load_view("Script.pyui")
ui.load_view(".\Script.pyui")
Since I never saw any note or documentation to suggest this is not officially supported -- to package and run UI code from a loaded UI file in a standalone app, I figure there must be a way to do this but it is just not documented anywhere.
Can anyone tell me how to accomplish this?


