Xcode 6.3从故事板导航到其他Swift 1.2文件时崩溃 [英] Xcode 6.3 Crashes when navigating from storyboard to other Swift 1.2 file
问题描述
我安装了Xcode 6.3,其中包括对Swift 1.2的支持。它出现了大量的错误信息,主要是铸造问题。
I installed Xcode 6.3 which includes support for Swift 1.2. It turned up a ton of error messages, which are mostly casting issues.
我导航到故事板,并且无法返回任何其他 .swift
而不会导致整个事情崩溃。我强制退出,重新启动,甚至重新安装,我仍然无法离开 Main.storyboard
文件。
I navigated to the storyboard, and cannot go back to any other .swift
without the whole thing crashing. I have force quit, restarted, and even re-installed, and I still can't navigate away from the Main.storyboard
file.
我已经尝试此处描述的建议打开故事板代码,进行一些更改,还原这些更改,保存并再试一次,但仍然没有运气。
I have tried the suggestion described here to open storyboard as code, make some changes, revert those changes, save and try again, and still no luck.
我的代码中有什么东西会破坏Xcode吗?还有其他人遇到过这种情况吗?我使用相同的代码库成功使用了Xcode 6.3 beta。
Is something in my code breaking Xcode? Is anyone else experiencing this? I had used Xcode 6.3 beta successfully with the same codebase.
更新:
现在已在 Xcode 6.3.1 于2015年4月21日发布。
Update: This has now been fixed in Xcode 6.3.1 released on the 21st of April 2015.
推荐答案
我从苹果开发者论坛收集到这是一个 @IBDesignable 问题。特别是在使用自定义字体,其他xib等的项目中。
I gather from the apple developer forums that this is an @IBDesignable issue. Especially in projects that use custom fonts, additional xibs, etc.
通过从swift UIView类中删除所有 @IBDesignable ,我以某种方式修复了我的问题定义。您可以使用TextMate或其他方式打开项目目录,搜索并删除所有@IBDesignable
I have somehow fixed my issue by removing all @IBDesignable from swift UIView class definitions. You can open your project directory with TextMate or other, search and remove all "@IBDesignable"
但是我仍然认为这是一个主要的bug,需要处理..所以请继续向Apple提交错误报告。
However I still think this is a MAJOR bug, that needs to be worked on.. so keep filing bug reports to Apple.
这篇关于Xcode 6.3从故事板导航到其他Swift 1.2文件时崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!