fastlane show “Unable to find a destination matching the provided destination specifier”

Peggy Tsai 
May 21, 2024

--

(fastlane, error handling)

如果執行fastlane出現下圖錯誤訊息

xcodebuild[8923:32109861] Writing error result bundle to /var/folders/mv/qmftf00s0kbgysjw6mbctht40000gn/T/ResultBundle_2024–21–05_14–10–0038.xcresult
[14:10:39]: ▸ xcodebuild: error: Unable to find a destination matching the provided destination specifier:
[14:10:39]: ▸ { generic:1, platform:iOS }
[14:10:39]: ▸ Ineligible destinations for the “STPTestArchUAT” scheme:
[14:10:39]: ▸ { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device, error:iOS 17.4 is not installed. To use with Xcode, first download and install the platform }

可以參考本文

錯誤訊息因為模擬器無安裝成功,因此無法使用模擬器執行專案

點擊專案旁的Get會自動安裝模擬器

安裝完後,需重新開機,Xcode就可以使用模擬器,可正常執行專案

--

--