Where can I download the iOS 10 simulator runtime

2019-02-01 06:08发布

问题:

I want to test my apps in the iOS 10 simulator, but I'm not sure where to get the .runtime file for iOS 10. I don't see a download for it under Components in Xcode 8. Where can I download the .runtime file for iOS 10 (if it exists)?

Thanks in advance!

EDIT: I forgot to mention: As I was trying to fix another problem (before I asked this question), I ended up deleting all of my runtimes and redownloading them (except for iOS 10).

回答1:

I ran into this issue earlier today. After installing Xcode - beta, my simulator was still only displaying iOS simulators 9.3 and below. What eventually ended up working for me was:

  • Killing the currently running simulator with cmd-Q
  • Control clicking (right click) on the Xcode - beta icon in my dock
  • Hovering over "Open Developer Tool"
  • Selecting Simulator from this menu

Once the simulator launched, I began to see iOS 10 in the Hardware -> Device drop down. Hope that helps.



回答2:

Xcode > Open Developer Tool > Simulator

close And re-open Xcode again



回答3:

All ios 10 simulator are already downloaded with xcode8 - beta it self. You can download additional simulators from preference -> Components.

And You can get data for you app in those simulators at following path.

/Users/User_ACC_Name/Library/Developer/CoreSimulator


回答4:

Ensure existing simulators are closed. Then open XCode 8 (beta):

Go to menu XCode -> Open Developer Tools -> Simulator.



回答5:

This worked for me:

  1. Go to App Store and Make Xcode Update 8.0
  2. Open Xcode and it installs the components
  3. Go to Menu "Window" > "Devices"
  4. Add A New Device (Important one that supports iOS 10))
  5. At the end the devices list is updated, and you can run the devices that can run iOS 10 in the simulator

Steps 1 to 5 Screenshots



回答6:

The iOS 10 Beta Simulator is shipped inside of Xcode 8.0 Beta. You do not need to download anything extra. The primary reason for the large size of the Xcode download is for the three simulator runtimes that it contains.



回答7:

OK, this has been open for long enough and Xcode 8/iOS 10 are out of beta, plus I solved this problem a week after this was asked, so I'll post my own answer. I ended up redownloading and reinstalling the entire Xcode 8 beta which includes the .runtime file in itself. Bit of an overkill, but I didn't have any other options at the time.



回答8:

Nothing already mentioned worked for me. I was missing iOS 10.3 simulators in Xcode 8.3.3. What worked for me was to reset the simulators using fastlane snapshot tool:

sudo gem install snapshot
snapshot reset_simulators

Source: https://stackoverflow.com/a/37814682/1318739