问题
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