本文介绍了操场中选定设备错误的运行时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在游乐场工作.我不小心使用了 OSX Playgrounds 而不是 iOS Playgrounds,所以我为 iOS 打开了一个新的 Playground.当我打开 Playground 时,我立即收到此错误:

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."

每次我尝试在操场上输入任何内容时都会弹出此错误.这在我创建的 OSX 游乐场中没有发生.

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. :)

我在这个问题中看到:

所选设备的运行时未安装错误

其他人在尝试运行模拟器时也遇到了类似的问题.

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!

推荐答案

裸"操场文件不能很好地工作.解决方法如下:

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

从其中一个模板创建一个新的 iOS 项目,并构建它.现在向该项目添加一个新文件并使其成为 iOS 游乐场.现在 Playground 可以工作了.

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.

这篇关于操场中选定设备错误的运行时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!