I created a new project in XCode.
我在XCode中创建了一个新项目。
File > New > Playground (option+shift+cmd+N)
文件>新的>游乐场(选项+shift+cmd+N)
I restarted my XCode and also rebooted my system, but still same error.
我重新启动了XCode,也重新启动了系统,但是仍然有相同的错误。
4 个解决方案
#1
4
Try navigating to the Xcode Menu Window >> devices (shift+cmd+2) a new window will pop up.
尝试导航到Xcode菜单窗口>>设备(shift+cmd+2)将弹出一个新窗口。
On the bottom left, add a new simulator, specifically one running on iOS 8.0 to the existing list.
在左下角,添加一个新的模拟器,特别是一个在iOS 8.0上运行的模拟器。
Restart Xcode.
重启Xcode。
#2
19
From the developer forums, this worked for me:
在开发人员论坛上,这对我很有效:
- Quit Xcode
- Xcode辞职
- Delete the folder
/Users/<username>/Library/Developer/CoreSimulator/Devices
. For example, in Terminal:rm -rf ~/Library/Developer/CoreSimulator/Devices
- 删除文件夹/用户/ <用户名> /图书馆/开发/ CoreSimulator /设备。例如,在终端:rm -rf ~/Library/Developer/CoreSimulator/Devices
- In Terminal:
killall -9 com.apple.CoreSimulator.CoreSimulatorService
(or just reboot).- 终端:killall -9 com.apple.CoreSimulator。CoreSimulatorService(或重新启动)。
#3
9
Fox Xcode 7, I had to install iPad Air or iPad Air 2 for the playground to work.
Fox Xcode 7,我必须安装iPad Air或iPad Air 2才能在操场上工作。
#4
1
As referred by @Mayank Gupta , It worked on adding new simulator and restarting the XCode.
如@Mayank Gupta所言,它致力于添加新的模拟器并重新启动XCode。
#1
4
Try navigating to the Xcode Menu Window >> devices (shift+cmd+2) a new window will pop up.
尝试导航到Xcode菜单窗口>>设备(shift+cmd+2)将弹出一个新窗口。
On the bottom left, add a new simulator, specifically one running on iOS 8.0 to the existing list.
在左下角,添加一个新的模拟器,特别是一个在iOS 8.0上运行的模拟器。
Restart Xcode.
重启Xcode。
#2
19
From the developer forums, this worked for me:
在开发人员论坛上,这对我很有效:
- Quit Xcode
- Xcode辞职
- Delete the folder
/Users/<username>/Library/Developer/CoreSimulator/Devices
. For example, in Terminal:rm -rf ~/Library/Developer/CoreSimulator/Devices
- 删除文件夹/用户/ <用户名> /图书馆/开发/ CoreSimulator /设备。例如,在终端:rm -rf ~/Library/Developer/CoreSimulator/Devices
- In Terminal:
killall -9 com.apple.CoreSimulator.CoreSimulatorService
(or just reboot).- 终端:killall -9 com.apple.CoreSimulator。CoreSimulatorService(或重新启动)。
#3
9
Fox Xcode 7, I had to install iPad Air or iPad Air 2 for the playground to work.
Fox Xcode 7,我必须安装iPad Air或iPad Air 2才能在操场上工作。
#4
1
As referred by @Mayank Gupta , It worked on adding new simulator and restarting the XCode.
如@Mayank Gupta所言,它致力于添加新的模拟器并重新启动XCode。