iOS: Operation not permitted when python uses makedirs

266 views
Skip to first unread message

Michael

unread,
Jul 20, 2016, 1:07:01 PM7/20/16
to Kivy users support
 Traceback (most recent call last):
   File "/Users/michael/Desktop/phone/.buildozer/ios/platform/kivy-ios/smile-ios/YourApp/main.py", line 3, in <module>
   File "/Users/michael/Desktop/phone/.buildozer/ios/platform/kivy-ios/smile-ios/YourApp/smile/experiment.py", line 292, in __init__
   File "/Users/michael/Desktop/phone/.buildozer/ios/platform/kivy-ios/smile-ios/YourApp/smile/experiment.py", line 377, in _process_args
   File "/Users/michael/GitHub/kivy-ios/dist/root/python/lib/python2.7/os.py", line 150, in makedirs
   File "/Users/michael/GitHub/kivy-ios/dist/root/python/lib/python2.7/os.py", line 157, in makedirs
 OSError: [Errno 1] Operation not permitted: 'data'
2016-07-20 12:50:10.894 smile[5151:1883309] Application quit abnormally!
2016-07-20 12:50:10.913 smile[5151:1883309] Leaving

The app crashes when python tries to make a new folder called data. I was wondering if there is anywhere in Xcode or kivy-ios that gives an app permission to create a new folder?

ZenCODE

unread,
Jul 20, 2016, 3:46:34 PM7/20/16
to Kivy users support
Yes, iOS is very restrictive in terms of permissions. You can only really create folders in your user directory. That is by design for security reasons. Rather use the "user_data_dir".

https://kivy.org/docs/api-kivy.app.html
Reply all
Reply to author
Forward
0 new messages