Xcode 6 Beta/Swift - Playground 未更新 [英] Xcode 6 Beta / Swift - Playground not updating

查看:34
本文介绍了Xcode 6 Beta/Swift - Playground 未更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在玩 Xcode 6 的第一个测试版的 Playground 功能 - 我注意到 Playground 有一半时间没有更新(只是不显示结果计算或发生了多少循环迭代)简单的代码/循环/里面的功能.甚至 Swift Tour https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/GuidedTour.html

I was playing around with the Playground feature of Xcode 6's first beta - and I notice half the time the Playground doesn't update (simply doesn't display the result calculation or how many loop iterations are happening) simple code/loops/functions that are in there. Even the Swift Tour https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/GuidedTour.html

有几行代码没有出现在 Playground 中.如果您弄乱了代码,有时它会通过移动代码或将其放在其他地方来显示出来.还有谁?任何修复?这只是测试版问题吗?

has several lines of code that don't show up in Playground. If you mess with the code sometimes it will show up, by moving the code around or placing it elsewhere. Anyone else? Any fixes? Is this just a beta problem?

推荐答案

确保您没有无意中向 Playground 代码添加了错误.不幸的是,没有错误的内联通知,并且在创建错误后,Playground 中的任何内容都不会更新.

Make sure you haven't inadvertently added an error to your Playground code. Unfortunately, there is no inline notification of an error, and after an error is created, nothing in the Playground will update.

为了帮助解决这个问题,打开 Assistant Editor(文件 > 视图 > 助手编辑器 > 显示助手编辑器),它应该包括一个控制台输出框.如果您的 Playground 中有任何错误,它们会显示在那里.一旦更正,您的 Playground 应该会再次更新.

To help with this, open up the Assistant Editor (File > View > Assistant Editor > Show Assistant Editor), which should include a Console Output box. If there are any errors in your Playground, they will show up there. Once corrected, your Playground should hopefully update once more.

也就是说,它可能有点慢,这取决于 Playground 的复杂性及其大小.

That said, it can be a bit slow depending on the complexity of your Playground and its size.

这篇关于Xcode 6 Beta/Swift - Playground 未更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆