問題
因爲清理磁盤數據,用XCode運行app在模擬器上,提示模擬器不存在
Unable to boot device because it cannot be located on disk
The device’s data is no longer present at /Users/[user name]/Library/Developer/CoreSimulator/Devices/D651BCC7-29FD-4B91-82F6-E255E856EA2F/data.
解決方法
- 退出XCode,退出模擬器
- 打開命令行工具Terminal
- 運行命令
xcrun simctl erase all
參考
https://stackoverflow.com/questions/47445797/unable-to-boot-device-because-it-cannot-be-located-on-disk