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 版本 最后保存

posted @ 2020-01-19 20:24  哒啉  阅读(902)  评论(0编辑  收藏  举报