我得到“xcrun:错误:SDK“iphonesimulator";无法定位"运行工具链时

I get quot;xcrun: error: SDK quot;iphonesimulatorquot; cannot be locatedquot; when running the toolchain(我得到“xcrun:错误:SDK“iphonesimulator;无法定位运行工具链时)

本文介绍了我得到“xcrun:错误:SDK“iphonesimulator";无法定位"运行工具链时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 iOS 上编译 Kivy 程序,但是当我运行构建 Kivy 发行版的命令时,我不断收到此错误:

I am trying to compile a Kivy program onto iOS, but when I run the command to build the Kivy distro I keep getting this error:

xcrun: 错误:找不到 SDKiphonesimulator"

xcrun: error: SDK "iphonesimulator" cannot be located

我的电脑上有 xcode.怎么回事?

I have xcode on my computer. What is going on?

推荐答案

有点晚了,但是我在尝试 kivy 时遇到了同样的错误,这对我有帮助:在 XCode Preferences 中打开,进入 Locations 并查看您的 Command Line Tools 选择.我的是空的.当我将其更改为当前使用的版本时,错误突然消失了.我在这里找到了这个解决方案(底部):https://groups.google.com/论坛/#!topic/rubymotion/Xw8gPcr2Fl8

A bit late, but I had the same error experimenting with kivy and this helped me: Open in XCode Preferences, tab into Locations and take a look at your Command Line Tools selection. Mine was empty. When I changed it to the current used version suddenly the error was gone. I found this solution here (bottom): https://groups.google.com/forum/#!topic/rubymotion/Xw8gPcr2Fl8

如果仍然缺少某些内容,您可以尝试下载较旧的 IOS 版本以确保已安装某些内容.在您的应用名称旁边,您可以选择设备,单击它并选择下载模拟...并选择您想要的 IOS.这一步我在上面之前做过,不知道有没有必要.

If there is still something missing you can try to download an older IOS version to be sure there is something installed. Next to your appname you can select the device, click on it and select Download Simulations... and select the IOS you wish. I have done this step before the above, so I don't know if it's necessary.

这篇关于我得到“xcrun:错误:SDK“iphonesimulator";无法定位"运行工具链时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:我得到“xcrun:错误:SDK“iphonesimulator";无法定位"运行工具链时

基础教程推荐