xcrun: error: SDK "iphonesimulator" cannot be located

编译kivy的时候提示

    raise exc(self.ran, self.process.stdout, self.process.stderr)

sh.ErrorReturnCode_1: 

 

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

 

  STDOUT:

 

 

  STDERR:

xcrun: error: SDK "iphonesimulator" cannot be located

xcrun: error: SDK "iphonesimulator" cannot be located

xcrun: error: unable to lookup item 'Path' in SDK 'iphonesimulator'

 

我的解决办法,启动 Xcode 找菜单项

Xcode – Preferences… -> Locations 选项卡下

Command Line Tools: 选择一下你现在用的 Xcode 版本 最后保存

原文地址:https://www.cnblogs.com/dosu/p/12215472.html