-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IBDesignables issue wich prevents to show storyboard preview. #10
Comments
Thank you very much :D |
Got it. |
I also tried that. But there is an error "Cannot load underlying module for 'Cards'". |
Hello @PaoloCuscela, sorry for the random messages. I just found I installed Cards 1.1 instead of the newest 1.2.3. After upgrading to the 1.2.3, the undeclared problem disappears but I got this error: IB Designables: Failed to render and update auto layout status for ViewController (BYZ-38-t0r): dlopen(Cards.framework, 1): Library not loaded: @rpath/Player.framework/Player |
Looks strange. I've done a test right now and all seems to work well. |
Can you post your sample project so I can have a look ? |
Sure! Thank you very much for your help! |
Thank you @PaoloCuscela. Sorry I forget to tell you that I'm able to build the project now, though it has a storyboard error. Before, when I'm using Cards 1.1, the prototype of a card can appear on the storyboard, but currently it can't show up, so I think it's that error causes the UI to fail to display. Also I tried reinstalling Xcode. The error is still here... |
I googled about it yesterday. It turned out that is a common issue, probably about some optional vars stopping IBDesignables to be rendered. |
Thanks for your efforts! |
Good news :D |
Sorry @PaoloCuscela I missed your last comment. I just upgraded it to 1.2.4 and the preview is still blank. Probably it's a weird problem happened on my macOS only. Thanks very much for your help! |
Already tried with Editor -> Refresh all views ? |
Yes. And the storyboard error is still here:
|
Do you get this error only with my repo ? |
Yes. And I find it works fine on your Demo project. I'm very confused why the error happens on my projects. |
Hello @PaoloCuscela, I upgraded the Xcode to the newest 9.1. The storyboard error disappeared but I still can't see the preview. |
I'm having the same error too but in my case I'm trying to use it on a UICollectionViewCell by adding a subview with Card class type. |
I've done some testing. |
We have the same issue as @wqfan reported. There is an error on Storyboard saying
The UI was not able to be rendered on Storyboard neither. Me and my guy are on |
I found a workaround that might work, try adding this in your podfile. |
Hi, just found out this library and i face the same issue as stated above, failed to render IB designable error. is there any update for this issue? I am using Xcode 9.2 Thanks! |
I had the same error trying to use cocoapods, I worked around it by adding the library manually. |
i assume its a cocoapods error since the same problem doesnt come up when adding the library manually... |
Hi, any update on this bug? |
I still get this bug in 1.3.2. With pod I get the IBDesignables error and if I install it manually it wont find the Cards module. |
This issue is not because of the Cards its due to the latest Cocoapods version to fix it just downgrade your cp to about 1.4< and it shouldnt show the error anymore @lukaskirner if you install it manually from what i know you wouldnt need to import Cards like its already imported somehow |
@QinGuan2004 suggested to downgrade Cocoapods which didn't completly removed the problem but after I added this little code to the Podfile it workes.
|
I had this same issue and fixed it by adding a signature fix and the code @lukaskirner mentioned above. Here is what my pod file looks like:
|
It works for me.
|
Hello, thanks for the awesome framework!
I just tried the Getting Started example. After dragging the Card into the ViewController and adding an @IBOutlet. I got an error that "Use of undeclared type 'CardHightlight'".
I installed the framework using Cocoapods. I'm new to iOS dev and I probably miss some stuff. Could you explain a bit why does this happen?
Thanks!
The text was updated successfully, but these errors were encountered: