Runtime for selected device error in playground

若如初见. 提交于 2019-12-11 12:59:00

问题


I am working in the Playground. I accidentally was using OSX playgrounds instead of iOS Playgrounds, so I opened a new Playground for iOS. When I opened the Playground I immediately got this error:

"The runtime for the selected device is not installed."

This error pops up every time I try to type anything into the playground. This did not happen in the Playgrounds I created that were OSX.

Yes, I turned it off and back on again. :)

I see in this question:

The runtime for selected device is not installed error

that other people are having a similar issue when they are trying to run the simulator.

Has anyone else encountered this issue and is able to provide some insight into this? Thank you!


回答1:


"Bare" playground files are not working very well. Here's a workaround:

Make a new iOS project from one of the templates, and build it. Now add a new file to that project and make it an iOS playground. Now the playground will work.



来源:https://stackoverflow.com/questions/24481145/runtime-for-selected-device-error-in-playground

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