Anybody knows how to fix PyObjC on iPhone 4s running iOS 5.0.1?
On my iPhone 4 with iOS 4.2.1 everything was working perfectly.
On the iPhone 4s with iOS 5.0.1 (and all the (same) packages installed) the PyObjC stuff does not work.
The error I get is:
File "/private/var/stash/Applications.pwn/MyPyObjC.app/MyPyObjC.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
(files __init__.py & _objc.dylib are present in both devices, file libobjc.A.dylib, is missing in both devices)
Again, both iPhones have the same packages installed (but different iOS).
(as far as I know, Saurik's HelloPython.app has the same problem).
I guess they changed something in iOS 5 and the PyObjC files do not reflect the change (yet)...
I hope they will fix it... (I have 4-5 PyObjC based apps that do not work anymore) :-(
Until then, any ideas for a quick fix?