1. 程式人生 > >“The run destination iOS Device is not valid for running the scheme”

“The run destination iOS Device is not valid for running the scheme”

      嘗試過幾次,同一個專案,剛剛還正常地執行在模擬器上的,但是當再一次run的時候,一直報”The run destination iOS Device is not valid for running the scheme“這個錯誤。關閉模擬器,還是報錯。直接X掉xcode多個專案中的其中一個,然後重新開啟,還是報錯。

    最後發現,這是XCode的一個bug。遇到這種情況只要Command+Q,退去XCode,然後再重新登入即可

   What  The  Fuck!!!