Home IOS Development python – xcrun “iphonesimulator” error after working toolchain construct kivy

python – xcrun “iphonesimulator” error after working toolchain construct kivy

0
python – xcrun “iphonesimulator” error after working toolchain construct kivy

[ad_1]

I am constructing a cellular app with Python and Kivy and I need to compile it for iOS.

I’ve:

  • kivy-ios put in
  • Python 3.9
  • Xcode 13.2
  • Xcode command line instruments
  • macOS 11.7.10

I adopted the rules within the official kivy documetation: https://kivy.org/doc/secure/information/packaging-ios.html

And I managed to get to the toolchain half.

After I run the toolchain construct kivy command within the macOS terminal, I am getting this error:

Traceback (most up-to-date name final):
  File "/Library/Frameworks/Python.framework/Variations/3.9/bin/toolchain", line 5, in <module>
    from kivy_ios.toolchain import principal
  File "/Library/Frameworks/Python.framework/Variations/3.9/lib/python3.9/site-packages/kivy_ios/toolchain.py", line 241, in <module>
    class Arch64Simulator(Arch):
  File "/Library/Frameworks/Python.framework/Variations/3.9/lib/python3.9/site-packages/kivy_ios/toolchain.py", line 246, in Arch64Simulator
    sysroot = sh.xcrun("--sdk", "iphonesimulator", "--show-sdk-path").strip()
  File "/Library/Frameworks/Python.framework/Variations/3.9/lib/python3.9/site-packages/sh.py", line 1508, in __call__
    rc = self.__class__.RunningCommandCls(cmd, call_args, stdin, stdout, stderr)
  File "/Library/Frameworks/Python.framework/Variations/3.9/lib/python3.9/site-packages/sh.py", line 737, in __init__
    self.wait()
  File "/Library/Frameworks/Python.framework/Variations/3.9/lib/python3.9/site-packages/sh.py", line 799, in wait
    self.handle_command_exit_code(exit_code)
  File "/Library/Frameworks/Python.framework/Variations/3.9/lib/python3.9/site-packages/sh.py", line 826, in handle_command_exit_code
    increase exc
sh.ErrorReturnCode_1: 

  RAN: /usr/bin/xcrun --sdk iphonesimulator --show-sdk-path

  STDOUT:


  STDERR:
xcrun: error: SDK "iphonesimulator" can't be positioned
xcrun: error: SDK "iphonesimulator" can't be positioned
xcrun: error: unable to lookup merchandise 'Path' in SDK 'iphonesimulator'

Does somebody know easy methods to repair this ?

I’ve noticed that some folks mentioned that on this case you must go within the Xcode preferences/settings part and do some stuff however I can not discover them on my Xcode model.

Possibly the issue is elsewhere.

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here