IBDesignables

Project 引用 playground

Interface Builder broken on Framework projects using Cocoapods 1.0
Create an IBDesignable UIView subclass with code from an XIB file in Xcode 6
Xcode 9.0在代码中任意键盘敲击不停build的解决

支持的数据类型
booleans
strings
numbers (i.e., NSNumber or any of the numeric value types),
CGPoint
CGSize
CGRect
UIColor
NSRange
UIImage

Xcode9的一个bug

当在xib或者storyboard上使用@IBDesignables修饰的视图对象时,当编辑该xib、storyboard或其对于的对象时,Xcode将针对你的每一次修改进行一次Build,导致Xcode无法工作。
解决方法
点击该xib、storyboard,点击Xcode目录栏的Editor,去掉Automatically Refresh View项前面的勾选.

CocoaPods
@IBDesignables broken on dynamic frameworks
dlopen() required code signature missing for xxx.framework

results matching ""

    No results matching ""