简体   繁体   中英

IBDesignable and multiple targets in Swift

Seems like IBDesignable has some problems with multiple targets and swift modules. After I've added new target (my app has 2 targets now, eg seller and buyer ), my StoryBoard began to halt views building with warning:

Storyboard: warning: IB Designables: Using class UITextField for object with  
custom class because the class _TtC15******Buyer11HCTextField does not exist

I think, designables compiler fails to find proper *swift** module somehow.
Any suggestions how to fix this?

Pic:

在此处输入图片说明

I'm using Xcode 7.0.1 and Swift2

The final solution is... Create a framework! It solves all the problem. Just keep your designables in separate bundle.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM