問題描述
我正在嘗試在 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";無法定位"運行工具鏈時的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!