Python Hello World in PyObjC on iPhone?

I installed the iphone-python package from Cydia, but the HelloPython application immediately closes when I launch it from Springboard.

It may be a red herring, but I found the .py file in the terminal and tried to run it with python and got a python error:

$ python /private/var/stash/Applications.pwn/HelloPython.app/HelloPython.py Traceback (most recent call last): File "/private/var/stash/Applications.pwn/HelloPython.app/HelloPython.py", line 9, in <module> import objc File "/usr/lib/python2.5/objc/__init__.py", line 17, in <module> _update() File "/usr/lib/python2.5/objc/__init__.py", line 14, in _update import _objc ImportError: dlopen(/usr/lib/python2.5/lib-dynload/_objc.dylib, 2): Symbol not found: _OBJC_CLASS_$_Object Referenced from: /usr/lib/python2.5/lib-dynload/_objc.dylib Expected in: /usr/lib/libobjc.A.dylib 

I am running 4.3.3.

How can I make this application work, so I will have a working PyObjC example?

+1
source share
1 answer

Well, due to changes in the way executable files are executed when starting a new ios, the dynamic library has become corrupted. Mach-o will no longer work due to the updated objective-c, so a workaround would be to compile pyobjc from the source code and run normaly. The only problem is that the pyobjc version for iphone is built for uikit, so you will need to find the source code for saurik (Jay Freeman) and compile it. I can do this for myself, so a bad post back with a deb file if I do this.

0
source

All Articles