Xcode show “Failed to prepare device for development.” error handling

(Xcode, device, error handling)

專案執行於時機上時,出現此狀況

Failed to prepare device for development.
This operation can fail if the version of the OS on the device is incompatible with the installed version of Xcode. You may also need to restart your mac and device in order to correctly detect compatibility.

從Devices and Simulators中看裝置,也出現警訊

關機,並重啟Mac電腦

如果還是異常,重開手機

--

--