Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
New Xcode Template (beta)
-
I haven't worked with the most recent XCode template, but my experience with the prior one is the same. My splash screen shows up, then everything goes blank for a second or 2, then my interface appears.
I would really prefer that my splash screen remain visible till my first UI update takes place. Is there some way to force that to happen?
-
@jesse so do you just experience a blank screen for a brief moment or a page filled with code?
I feel that just a blank screen for a few moments is less of an issue than the problem @andymitchhank cited
-
Hi guys - I have some really strange behavior going on, and it's probably not related to the template, but I don't know so I thought I would see if you guys can draw on your immense wisdom to come up with some "obvious" answer. I don't want you guys to debug my code or anything, just please let me know if there's something obvious I'm missing.
So I have my app running inside pythonista 1.6 latest perfectly. I have it working in the template out of xCode as well. I'm using mysqldb.
At one point in my code I have a try except clause that attempts to cursor.execute("....") to create the table we'll be using and it excepts if that table already exists. (the table DOES already exist, and should except.)Inside the pythonista app, it goes straight to the except clause like it should, "Table couldn't be created..." and proceeds as normal. Wierdness: Inside the xCode simulator however, it gets stuck at "....trying table creation"
AND HERE'S the SUPER WIERDNESS:
inside the simulator it will remain stuck trying to execute the database call UNTIL I RUN THE APP FROM THE PHONE. So as soon as I run the app on my phone it gets the simulator unstuck and moving past the except clause like it should...
huh. (I added the ip address of my mac to the amazon rds security group, but that doesn't seem to have any effect)
Any thoughts?
-
That's very strange...the iOS simulator should be completely disconnected from the physical iOS device. Just a few questions: when you run the script on your physical iOS device to unfreeze the simulator, are you running it within Pythonista or as a standalone app compiled with Xcode? Also, is your physical iOS device connected to the computer running the simulator? If so, is it a wired or wireless connection? Does your physical iOS device appear in Xcode as a potential target to run the template (with your script filled in) on alongside the iOS simulator? One last set of questions: this may sound dumb, but which of your devices (specifically your computer running the simulator and your physical iOS device) are connected to the Internet? Does your script connect to any server at all, or can it be run, with nothing disabled, when completely offline? Does your script use Bluetooth at all, perhaps with the
cb
module in the Pythonista 1.6 beta? This may seem like a lot to ask for, but I honestly have no idea what could possibly make something like this happen, so I want to narrow down the possibilities as much as, well, possible (I can't possibly think of a possible synonym for "possible" right now, so yeah).
Also, make sure to remember that @omz hasn't yet released a template for the latest Pythonista 1.6 betas (the old template doesn't support features like theappex
orsk
modules), and there might be under-the-hood changes that break other stuff between the old template and the new betas. Don't say I didn't warn you ;-). -
Answers:
On my iPhone 6 plus, it's running from within Pythonista. Internet access is necessary for the script - doesn't work at all if offline. It doesn't seem to matter whether the phone's connected through LTE or wifi - the behavior persists. The Mac is connected through wifi, and all network functionality works. No Bluetooth module being used.Update: xCode Beta 7. Will try xCode 6 and see how it goes.
-
what sort of Internet access is required! standard web pages? how are you connecting ( urllib, requests, etc)?
might be worth sniffing the connection with, say. wire shark to see what is different, for example a different user agent or something else, or if for example the simulator is duplicating the mac address, etc, or otherwise confusing your router. try turning off your firewall. -
@omz: You could update the readme, now you don't need a PAID dev license to run on an actual device.
-
ld: -no_compact_unwind and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together
clang: error: linker command failed with exit code 1 (use -v to see invocation)
This only occurs when building for my iPad mini, no problem building for the iPad 2 simulator. How do I fix this? -
Had to go into build settings and set "enable bitcode" to "no"
-
I would like to compile and run the template under Xcode 7.1 and iOS 9 but get such an error:
Undefined symbols for architecture arm64:
"_ffi_prep_closure_loc", referenced from:
__ctypes_alloc_callback in liblibpythonista.a(callbacks.o)
"_ffi_prep_cif", referenced from:
__ctypes_callproc in liblibpythonista.a(callproc.o)
__ctypes_alloc_callback in liblibpythonista.a(callbacks.o)
"_ffi_call", referenced from:
__ctypes_callproc in liblibpythonista.a(callproc.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)Are there any ideas, what will be wrong ?
THX, Stefan
-
@gyronaut said:
I would like to compile and run the template under Xcode 7.1 and iOS 9 but get such an error:
Undefined symbols for architecture arm64:
"_ffi_prep_closure_loc", referenced from:
__ctypes_alloc_callback in liblibpythonista.a(callbacks.o)
"_ffi_prep_cif", referenced from:
__ctypes_callproc in liblibpythonista.a(callproc.o)
__ctypes_alloc_callback in liblibpythonista.a(callbacks.o)
"_ffi_call", referenced from:
__ctypes_callproc in liblibpythonista.a(callproc.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)Are there any ideas, what will be wrong ?
THX, Stefan
Hi Stefan,
Take a look here:
[https://forum.omz-software.com/topic/1912/problem-with-xcode-template](link url)Summary: Change "Enable bitcode" to "No" in the project settings. I think.
Good luck,
TIzzy