我开始使用
Swift并在
Swift操场中使用教程来获取macOS.
所以示例代码就是
var str = "Hello,playground" str str1
我没有在str上得到任何红色错误信息1.只是在控制台崩溃
Playground execution failed: error: MyPlayground.playground:1:1: error: use of unresolved identifier 'str1' str1 ^~~~ * thread #1,queue = 'com.apple.main-thread',stop reason = breakpoint 1.1 * frame #0: 0x0000000102157360 com.apple.dt.Xcode.PlaygroundStub-macosx`executePlayground frame #1: 0x000000010215522a com.apple.dt.Xcode.PlaygroundStub-macosx`-[PlaygroundViewBridgeService execute] + 90
如果我更正了代码,那么游乐场会刷新并显示新数据,而不是报告错误
如何阻止Xcode崩溃并按行为记录?
Xcode版本8.3(8E162)macOS 10.12.4
我已经尝试删除所有Xcode文件(包括它在构建期间创建的文件)并重新安装和使用其他用户
解决方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。