-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
IBDesignable issue and CocoaPods #28
Comments
I haven't heard of this issue yet. Are you sure this is a CocoaPods issue? Are you using Xcode 6? I'm not sure where to go from here, have you tried the example project? |
I use Xcode 6.1.1 GM. I assume it's a problem with pods but I may be wrong. On Monday, December 1, 2014, Tobias Hagemann [email protected]
|
If you still find this issue, it would be great if you could send me a minimal project example to [email protected] so that I can look into it! |
I integrated THLabel in one of my apps but later dropped it as the idea of labels customizations has been cancelled. I'll let you know if this pops up in further when I use it next time. |
@pronebird seems the issue is related to Cocoapods: CocoaPods/CocoaPods#2792 @MuscleRumble trying the example project cannot simulate the issue. It's not using Cocoapods to use THLabel. |
Thanks for the info @chakming! :) So... I have to wait for Frameworks support? |
I guess so. At this moment, the only way to render them correctly in Interface Builder, is to import THLabel manually, instead through Cocoapods...but I still prefer Cocoapods installation haha |
Yeah, CocoaPods should be the way to go. Too bad. 😁 |
I'll check if this bug fixed in 6.1.1. |
I attempted to use THLabel through cocoapods and IBDesignable didn't work. Interface Builder complained and then stopped updating the label. After that it wouldn't let me update any properties either. Eventually I worked around the problem by moving THLabel.* into my project and commenting out IBDesignable/IBInspectable. IBDesignable in general seems to be quite buggy, especially with Swift. Sigh. You might want to consider removing support for IBDesignable until Xcode gets its act together. |
Thanks for your suggestion @gurgeous! I've released 1.4.6 and I'll just wait with IBDesignable until it all works out. :) |
NOOOOOOOooooooooooo! God damn it Apple, why you so broken. |
oh, I have the same problem, I just drag the source code to my Xcode project and remove it from CocoaPods, it works well. I think this is a Xcode bug, Xcode can`t parse @IBDesignable class from a static lib |
This is now working with Cocoapods (0.36.1.beta.1) and by adding |
Thanks for the info @Eddpt! To everyone who's interested in using THLabel with Interface Builder, should follow @Eddpt's instructions and use the
I'll keep this issue open until the new version of CocoaPods is out of beta. And when that happens, I'll merge the |
CocoaPods 0.36 is now out of beta, but I'm not sure if I should merge |
Yep — On Thu, Mar 12, 2015 at 1:10 AM, Tobias Hagemann [email protected]
|
Hmmm... now I'm not 100% sure how to deal with this. I can think of several scenarios:
|
What if pod built as framework you activate ibdesignable? I am sure there is some magic define for that ... |
That would be great! I've opened an issue at CocoaPods: CocoaPods/CocoaPods#3265 Maybe there is some magic. :D If not, you just gave me another idea, which I like most now: Define my own macro (which defaults to NO) to flag if the user wants to use IBDesignable or not. |
custom define is PITA, CocoaPods should help to resolve that as it clearly impacts all of pods out there. |
Any news on that? |
Unfortunately not, I'm still waiting for feedback from CocoaPods. If you want to use IBDesignable with THLabel, you can use the |
I confirm this issue with another view with and without the |
Cocoa pods 3.7.1 does NOT fix the issue if your target < iOS 8 and you cannot use |
What is the fix now for projects supporting iOS versions lower than 7?! |
Just use the |
Did you manage to make it work on IB and CocoaPods?
While properties show up in IB, they are not rendered, I get this error:
Storyboard.storyboard: error: IB Designables: Failed to update auto layout status: Failed to load designables from path (null)
The text was updated successfully, but these errors were encountered: