Xcode 8 - IB Designables - 无法呈现和更新自动布局状态,代理程序崩溃 [英] Xcode 8 - IB Designables - Failed to render and update auto layout status, The agent crashed
问题描述
我最近升级到Xcode 8,我遇到了故事板的问题。
I recently upgraded to Xcode 8 and I am having issues with the Storyboard.
如果我打开项目并且我没有打开故事板,它将会编译运行就好了。一旦我打开故事板,我就会收到有关IB Designables的多个错误,如下所示。
If I open the project and I don't have the Storyboard open, it will compile and run just fine. Once I open up the Storyboard, I get multiple errors about IB Designables as shown below.
这些视图是唯一使用 TextFieldEffects
和 BEMCheckbox
中的自定义视图的视图我使用Cocoapods导入。
These views are the only views that are using custom views from TextFieldEffects
and BEMCheckbox
that I imported using Cocoapods.
推荐答案
您可以尝试以下方法之一来找出原因:
You can try one of the following to figure out the cause:
-
在此目录中查找
IBDesignablesAgentCocoaTouch
日志:
〜/ Library / Logs / DiagnosticReports
并查看原因。
在选择您的同时转到编辑器 - >调试所选视图故事板中的 @IBDesignable UIView
,并查看堆栈跟踪。
Go to the Editor -> Debug Selected View while selecting your @IBDesignable UIView
in your storyboard, and see the stack trace.
删除Derive Data文件夹。
Delete Derive Data folder.
Xcode Preference -> Location -> Derived Data
/Users/YourMacName/Library/Developer/Xcode/DerivedData
清理项目 Shift
+ 命令
+ Alt
+ K
。
构建项目命令
+ B
。
这篇关于Xcode 8 - IB Designables - 无法呈现和更新自动布局状态,代理程序崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!