Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyObjC on iPhone (iOS5) broken?

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?

like image 768
Gik Avatar asked Feb 09 '12 12:02

Gik


1 Answers

Sorry PyObjec is dead since the ios 2.0 Jay Freeman abandonned the project

(btw ios wasn't made for coders/hackers and geeks buy an android phone if you want to code on your phone using the amazing SL4A api on android :) )

like image 144
Arnaud Aliès Avatar answered Nov 07 '22 23:11

Arnaud Aliès