簡體   English   中英

High Sierra上的Xcode 10錯誤“可執行文件至少需要macOS 10.14”

[英]Xcode 10 error on High Sierra “Executable requires at least macOS 10.14”

我有Xcode 10.2.1在High Sierra(10.13.6)上成功運行的原因,因為即使使用Mojave修補程序工具,該機器也不支持Mojave。

我可以成功啟動並構建新項目,但是在構建時,我的主項目(最初是在Xcode 10 w / Mojave中創建的)最終收到此錯誤:

unable to locate xcodebuild, please make sure the path to the Xcode folder is set correctly!
Executable requires at least macOS 10.14, but is being run on macOS 10.13.6, and so is exiting.codesign_allocate

我都嘗試將xcode-select路徑設置為:

sudo xcode-select -s /Library/Developer/CommandLineTools
sudo xcode-select -s /Applications/Xcode9.app/Contents/Developer
sudo xcode-select -s /Applications/Xcode10.app/Contents/Developer

他們都沒有工作:(而且我必須以某種方式在High Sierra上建造它,因為在購買新機器之前,我將暫時無法使用Mojave。:(任何幫助都會令人驚訝。

我只是在macOS High Sierra 10.13.6上使用Xcode v10.2遇到了這個問題,無法獲得較舊的iOS應用程序,因此必須在Xcode 10.2的Simulator.app安裝程序中進行構建和運行

說了這么多,我在High Sierra機器上確實安裝了兩個並行的Xcode。 Xcode v10.1和v10.2

我可以獨立啟動每個Xcode版本,並且能夠啟動Xcode 10.1並使用Xcode 10.1和為Xcode 10.1提供的模擬器來構建和運行應用程序,這很有幫助,因為我是針對9.3.5 SDK iOS構建該應用程序的。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM