-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Cannot use classes marked with @objc in IB in Xcode8 and Swift 3. #552
Comments
Can you send a sample to [email protected]? The class names have changed and this may be the issue. We have samples in Storyboards that use classes with @objc. Thank you :) |
I created a simple sample project recreating the issue and sent it by email. These is what I'm using:
Thanks. |
Excellent, thank you. I received your email. I will be taking a look shortly. |
Looking now :) |
You are correct. There is a warning. I believe it is because the @objc for those classes are not needed. I have removed them and there will be a release later today with the update. Thank you for bringing this to my attention :) |
I seem to be experiencing this issue with My current workaround is: class NotesTextView : TextView { } |
Hmmm... @markst can I see your setup code please? Thank you! |
Cool, if you can do exactly that where the issue is reproducible, it would be great. Normally I would do it, but I have a lot to do at the moment. Thank you! |
Not sure if this is something further introduced in xcode 8.3 But it's also happening to
Again resolution is to remove the Afraid I can't provide any more details on reproducing, otherwise I'd fix the problem & PR myself. |
I'll test and make a release for this today :) Thank you! @markst |
Please Send me sample project which have integrate the material design source frame work i getting error Used of unresolved identifier 'objc_getAssociatedObject' in Material+Obj-C.swift File
@ :- [email protected] |
@NikunjKumbhani There is an entire repo of samples https://github.com/CosmicMind/Samples :) |
Thanks A lot @DanielDahan |
You can find a fix for this in Material 2.7.0 :) |
After upgrading my project to Swift 3 and Material 2 I had an issue when compiling with messages similar to: "Unknown class _TtC8Material4View in Interface Builder file".
I turns out that in IB when setting the Custom Class it didn't show "Material" in the module section dropdown for some classes.
The classes that had this issue also had the @objc attribute. I removed the attribute and then it showed "Material" in module section dropdown and compiled/worked without problems.
Classes that I found to have this issue are:
The text was updated successfully, but these errors were encountered: