无法在模拟器中运行app: Xcode 6.0.1 iOS 8

时间:2023-01-23 15:04:16

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.

我在早上的os X 10.9.5中从App Store更新通知中将我的Xcode更新到6.0.1,然后重新启动我的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.

然后我发现Xcode已经更新到6.0.1,但是当我尝试在它上运行我的应用时,我得到的只是iOS设备,而不是模拟器。

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,

在我的模拟器菜单管理设备中没有模拟器只有我的mac存在,然后我尝试添加模拟器但是它给了我没有找到路径错误的错误,我尝试了所有在web搜索中找到的解决方案比如location标签命令行工具,一切都很好,

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

但我还是没有得到模拟器?有人能帮我一下吗?

5 个解决方案

#1


18  

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

可以通过点击Xcode6—>窗口—>设备解决,如下图所示:

无法在模拟器中运行app: Xcode 6.0.1 iOS 8

When you select Device Option you get following window open:

当您选择设备选项时,您将打开以下窗口:

无法在模拟器中运行app: Xcode 6.0.1 iOS 8

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.

出现了所有模拟器或连接设备。如果你发现没有模拟器,你可以通过点击+按钮添加,然后你会得到下面的窗口创建模拟器。

无法在模拟器中运行app: Xcode 6.0.1 iOS 8

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

点击一个选项,有模拟器列表,你会得到模拟器。希望能解决你的问题。

#2


0  

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

选择预览> iOS模拟器版本> ios6.0或6.1。*在iOS模拟器中选择预览>

  • If you don't see iOS 6.0 or iOS 6.1, see Downloading and Installing Xcode Components in the iOS Developer Library.
  • 如果您没有看到iOS 6.0或iOS 6.1,请参阅在iOS开发人员库中下载和安装Xcode组件。

#3


0  

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 ...'?

xcrun simctl list的输出是什么?在~/Library/Logs/CoreSimulator/CoreSimulator有什么有趣的东西吗?log表示问题?是否可以从设备管理器中添加和删除模拟器设备?你能从命令行“xcrun simctl创建…”中添加和删除设备吗?

#4


0  

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.

我可以建议从终端检查xcode-select。输入xcode-select -p并查看输出。这应该是Xcode应用程序中的content /Developer目录。在我的机器上——因为我没有在应用程序文件夹中留下Xcode,所以它读取/应用程序/开发人员/Xcode.app/内容/开发人员/。确保它实际上指向Xcode的安装位置。例如,您可能将Xcode放在普通/应用程序之外的目录中,而Xcode -select将在与Xcode不同的位置查找Xcode的内部信息。我以前就被这事弄糊涂了。

#5


0  

Follow these steps to add a (new) simulator

按照以下步骤添加(新的)模拟器

  1. Click on Simulator icon and open simulator list.
  2. 单击模拟器图标并打开模拟器列表。
  3. At the end of list, there is an option to add new simulator "Add Additional Simulator". That will open 'Device & Simulator' window.
  4. 在列表的末尾,有一个选项可以添加新的模拟器“添加额外的模拟器”。这将打开“设备和模拟器”窗口。
  5. Switch to 'Simulator' tab.
  6. 切换到“模拟器”选项卡。
  7. There are three field in simulator tab.
  8. 模拟器选项卡有三个字段。
  9. Click on '+' icon, on left bottom corner of window.
  10. 点击“+”图标,在窗口的左下角。
  11. Simulator Name: Enter simulator name here
  12. 模拟器名称:在这里输入模拟器名称
  13. Device Type: Select iPad from this dropdown list
  14. 设备类型:从下拉列表中选择iPad。
  15. OS Version: Select OS version from this dropdown list
  16. 操作系统版本:从下拉列表中选择操作系统版本
  17. Click on 'Create'
  18. 点击“创建”

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

在模拟器选项列表中将添加一个新的模拟器。

Look at this snapshot to understand flow of above steps: 无法在模拟器中运行app: Xcode 6.0.1 iOS 8

查看此快照,了解上述步骤的流程:

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

如果在模拟器列表中没有模拟器/OS版本,

  1. Click on Simulator icon and open simulator list.
  2. 单击模拟器图标并打开模拟器列表。
  3. At the end of list, there is an option to add new simulator "Download Simulator". That will open 'Component' window (from Xcode >> Preferences).
  4. 在列表的末尾,有一个选项可以添加新的模拟器“下载模拟器”。这将打开“组件”窗口(来自Xcode >>首选项)。
  5. Select/click simulator from list, which you need to download.
  6. 从列表中选择/单击模拟器,需要下载。

Look at this snapshot: 无法在模拟器中运行app: Xcode 6.0.1 iOS 8

看看这个快照:

#1


18  

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

可以通过点击Xcode6—>窗口—>设备解决,如下图所示:

无法在模拟器中运行app: Xcode 6.0.1 iOS 8

When you select Device Option you get following window open:

当您选择设备选项时,您将打开以下窗口:

无法在模拟器中运行app: Xcode 6.0.1 iOS 8

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.

出现了所有模拟器或连接设备。如果你发现没有模拟器,你可以通过点击+按钮添加,然后你会得到下面的窗口创建模拟器。

无法在模拟器中运行app: Xcode 6.0.1 iOS 8

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

点击一个选项,有模拟器列表,你会得到模拟器。希望能解决你的问题。

#2


0  

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

选择预览> iOS模拟器版本> ios6.0或6.1。*在iOS模拟器中选择预览>

  • If you don't see iOS 6.0 or iOS 6.1, see Downloading and Installing Xcode Components in the iOS Developer Library.
  • 如果您没有看到iOS 6.0或iOS 6.1,请参阅在iOS开发人员库中下载和安装Xcode组件。

#3


0  

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 ...'?

xcrun simctl list的输出是什么?在~/Library/Logs/CoreSimulator/CoreSimulator有什么有趣的东西吗?log表示问题?是否可以从设备管理器中添加和删除模拟器设备?你能从命令行“xcrun simctl创建…”中添加和删除设备吗?

#4


0  

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.

我可以建议从终端检查xcode-select。输入xcode-select -p并查看输出。这应该是Xcode应用程序中的content /Developer目录。在我的机器上——因为我没有在应用程序文件夹中留下Xcode,所以它读取/应用程序/开发人员/Xcode.app/内容/开发人员/。确保它实际上指向Xcode的安装位置。例如,您可能将Xcode放在普通/应用程序之外的目录中,而Xcode -select将在与Xcode不同的位置查找Xcode的内部信息。我以前就被这事弄糊涂了。

#5


0  

Follow these steps to add a (new) simulator

按照以下步骤添加(新的)模拟器

  1. Click on Simulator icon and open simulator list.
  2. 单击模拟器图标并打开模拟器列表。
  3. At the end of list, there is an option to add new simulator "Add Additional Simulator". That will open 'Device & Simulator' window.
  4. 在列表的末尾,有一个选项可以添加新的模拟器“添加额外的模拟器”。这将打开“设备和模拟器”窗口。
  5. Switch to 'Simulator' tab.
  6. 切换到“模拟器”选项卡。
  7. There are three field in simulator tab.
  8. 模拟器选项卡有三个字段。
  9. Click on '+' icon, on left bottom corner of window.
  10. 点击“+”图标,在窗口的左下角。
  11. Simulator Name: Enter simulator name here
  12. 模拟器名称:在这里输入模拟器名称
  13. Device Type: Select iPad from this dropdown list
  14. 设备类型:从下拉列表中选择iPad。
  15. OS Version: Select OS version from this dropdown list
  16. 操作系统版本:从下拉列表中选择操作系统版本
  17. Click on 'Create'
  18. 点击“创建”

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

在模拟器选项列表中将添加一个新的模拟器。

Look at this snapshot to understand flow of above steps: 无法在模拟器中运行app: Xcode 6.0.1 iOS 8

查看此快照,了解上述步骤的流程:

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

如果在模拟器列表中没有模拟器/OS版本,

  1. Click on Simulator icon and open simulator list.
  2. 单击模拟器图标并打开模拟器列表。
  3. At the end of list, there is an option to add new simulator "Download Simulator". That will open 'Component' window (from Xcode >> Preferences).
  4. 在列表的末尾,有一个选项可以添加新的模拟器“下载模拟器”。这将打开“组件”窗口(来自Xcode >>首选项)。
  5. Select/click simulator from list, which you need to download.
  6. 从列表中选择/单击模拟器,需要下载。

Look at this snapshot: 无法在模拟器中运行app: Xcode 6.0.1 iOS 8

看看这个快照: