Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IB_DESIGNABLE build failed when using class from within a framework

I created a new embedded framework. Within the framework I created a class called "WBButton", which is a subclass of UIButton. I have set the IB_DESIGNABLE and added IBInspectable attributes to allow configuration through Interface builder, as explained here.

It works fine when I test it from within my framework (by adding a sample .xib and placing the button on the screen), but when adding the custom button to a nib located on the project which contains the framework, I get a "Build Failed" message next to the "Designables" (see below).

Also, what does "Module" mean in Interface builder?

enter image description here

like image 371
cohen72 Avatar asked Sep 29 '22 03:09

cohen72


1 Answers

Xcode 6 has a bug that breaks IB_DESIGNABLE classes defined in static library or framework. The same is with CocoaPods which use static library for all Pods.

like image 61
Rob Zombie Avatar answered Oct 03 '22 08:10

Rob Zombie