2

I'm trying to use some IB Designables I imported into a project, the designables are accessible via storyboard but don't do anything when used. I noticed a

Designables - Build Failed

under the identity inspector in the top right corner: Designables

Is there a way to make it so the designables are usable?

SwiftyJD
  • 5,257
  • 7
  • 41
  • 92

1 Answers1

1

I found out what the issue was, I was importing the folder with the designables into the project. When I took the designables out of the folder and imported them individually it worked fine.

SwiftyJD
  • 5,257
  • 7
  • 41
  • 92
  • 1
    please explain in more detail. I m facing the same issue. – drulabs Dec 08 '17 at 11:36
  • Don't bring in the folder that is storing all the designables into the project. Each designable has to be brought into the project individually. – SwiftyJD Dec 09 '17 at 03:08
  • Got it. I figured it out after 4 hours and saw your comment just. quite a waste of time for a known problem :( – drulabs Dec 09 '17 at 17:31
  • I added the files from xcode file menu and its still doesn't work. – AceN Apr 23 '18 at 10:13
  • @AceN try dragging and dropping each file manually into the project navigator and be sure to check the "copy if needed" option. – SwiftyJD Apr 23 '18 at 14:49