Xcode 10.3 Installation

限于喜欢 提交于 2019-12-17 18:32:16

问题


I have just been (involuntarily) upgraded to Xcode 10.3 (10G8). I'm getting the following error:

/Users/hgm/XCode/Gnosys/TGuide/TGPrep/Assets.xcassets:-1: Failed to find a suitable device for the type IBSimDeviceTypeiPad2x (com.apple.dt.Xcode.IBSimDeviceType.iPad-2x) with runtime iOS 12.4 (12.4 - 16G73) - com.apple.CoreSimulator.SimRuntime.iOS-12-4

It appears that the upgrade to Xcode is incomplete.

How do I ensure a complete installation, if this is the problem?


回答1:


Restarting your computer/macOS will resolve the issue.




回答2:


Kill all simulator processes

$ sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService

Set the correct Xcode path

$ sudo xcode-select -s  /Applications/Xcode.app/Contents/Developer

If that doesn’t work, reset all simulators

$ xcrun simctl erase all



回答3:


First, try to close any running Simulator and Xcode instances. Then, restart CoreSimulatorService.

sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService

You should now be able to build and run your app without any issues.

If not, another issue that you might encounter is that the Xcode upgrade deleted some versions of iOS. You might need to download an iOS Simulator from Xcode. I upgraded from Xcode 10.2, to 10.3, and no simulator was available.

Go to Xcode -> Preferences, and click on Components.

From there you will be able to download a version of iOS.

After the download is complete, close any running Simulator and Xcode instances again and try restarting CoreSimulatorService.

sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService



回答4:


  • Delete Xcode in Launchpad.
  • Clean ~/Library/Developer folder.
  • Open the App Store, the Xcode APP button will be "Open".
  • Open it.
  • it worked fine or me.

  • I have cleaned Xcode folder and project, but it did not work.




回答5:


I had the same issue and could only resolve it by downloading the iOS versions again (from Xcode Preferences > Components) that are used in my list of simulators. After that a rebuild (command-B) resolved the error.

In my case downloading iOS 10.3.1 was the solution, but your used versions may differ.



来源:https://stackoverflow.com/questions/57155654/xcode-10-3-installation

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!