iOS Development

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

Spread the love

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


  • 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:

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 foremost
  File "/Library/Frameworks/Python.framework/Variations/3.9/lib/python3.9/site-packages/kivy_ios/", line 241, in <module>
    class Arch64Simulator(Arch):
  File "/Library/Frameworks/Python.framework/Variations/3.9/lib/python3.9/site-packages/kivy_ios/", 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/", 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/", line 737, in __init__
  File "/Library/Frameworks/Python.framework/Variations/3.9/lib/python3.9/site-packages/", line 799, in wait
  File "/Library/Frameworks/Python.framework/Variations/3.9/lib/python3.9/site-packages/", line 826, in handle_command_exit_code
    elevate exc

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


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 methods to repair this ?

I’ve noticed that some individuals mentioned that on this case you should go within the Xcode preferences/settings part and do some stuff however I am unable to discover them on my Xcode model.

Possibly the issue is elsewhere.

Leave a Reply

Your email address will not be published. Required fields are marked *