Unable to run app in Simulator : Xcode 6.0.1 iOS 8

2019-04-08 14:36发布

I updated my Xcode to 6.0.1 from the App Store update notification in the morning in the os X 10.9.5, and then restarted my mac.

Then i found the Xcode has been updated to the 6.0.1 ,But when i tried to run my app on it i am getting only iOS device as the device,not simulators.

in my simulator menu manage devices there is no simulators only my mac is present ,then i tried to add simulators but it has given me error of path is not found,i tried every solutions found in the web search like locations tab command line tools,everything is fine,

But still i am not getting the simulators?Can anybody help me on this?

5条回答
该账号已被封号
2楼-- · 2019-04-08 15:21

What is the output of 'xcrun simctl list'? Is there anything interesting in ~/Library/Logs/CoreSimulator/CoreSimulator.log to indicate a problem? Are you able to add and delete simulator devices from the device manager? Can you add and delete devices from the command line 'xcrun simctl create ...'?

查看更多
闹够了就滚
3楼-- · 2019-04-08 15:26

The one thing I can suggest is checking xcode-select from a Terminal. Type xcode-select -p and look at the output. This should be the Contents/Developer directory within your Xcode application. On my machine - because I don't leave Xcode in the Application folder, it reads /Applications/Developer/Xcode.app/Contents/Developer/. Make sure it's actually pointing at where Xcode is installed. For example you may be putting Xcode in a directory other than the usual /Applications, while xcode-select is looking for the Xcode internals in a different place than where Xcode is. I've been caught out by this before now.

查看更多
甜甜的少女心
4楼-- · 2019-04-08 15:34

Follow these steps to add a (new) simulator

  1. Click on Simulator icon and open simulator list.
  2. At the end of list, there is an option to add new simulator "Add Additional Simulator". That will open 'Device & Simulator' window.
  3. Switch to 'Simulator' tab.
  4. There are three field in simulator tab.
  5. Click on '+' icon, on left bottom corner of window.
  6. Simulator Name: Enter simulator name here
  7. Device Type: Select iPad from this dropdown list
  8. OS Version: Select OS version from this dropdown list
  9. Click on 'Create'

A new simulator will be added in your Simulator option list.

Look at this snapshot to understand flow of above steps: enter image description here

And if there is no simulator/OS version in simulator list, you're looking for,

  1. Click on Simulator icon and open simulator list.
  2. At the end of list, there is an option to add new simulator "Download Simulator". That will open 'Component' window (from Xcode >> Preferences).
  3. Select/click simulator from list, which you need to download.

Look at this snapshot: enter image description here

查看更多
ゆ 、 Hurt°
5楼-- · 2019-04-08 15:36

Choose Preview > iOS Simulator Version > iOS 6.0 or 6.1.* Choose Preview > Preview in iOS Simulator.

  • If you don't see iOS 6.0 or iOS 6.1, see Downloading and Installing Xcode Components in the iOS Developer Library.
查看更多
仙女界的扛把子
6楼-- · 2019-04-08 15:38

Might be that resolve by tap Xcode6--> Window--> Device like following image:

enter image description here

When you select Device Option you get following window open:

enter image description here

There is appear all simulator or connected devices. If you found No simulator you can add by click on + Button then you get following window create simulator.

enter image description here

click an option there is simulator list and you get simulator. Hope that solve you issue.

查看更多
登录 后发表回答