As documented here since I upgraded my project to use_frameworks in Cocoapods, I cannot reference values in enums. Any of the enum values I access throw that error. I tried following this suggestion, but no luck.
If I don't use frameworks, it works fine, so my suspicion is it's something to do with that.
Any help would be great!
@ashfurrow - you seeing this?
I have not seen this. @mergesort could you provide a small Xcode project demonstrating the bug? Versions of Xcode and CocoaPods would be :+1: too.
I can't seem to recreate it in a new project, only one that it's already integrated into. I've tried cleaning, deleting derived data, removing the pod, restarting Xcode, and so on.
Something I could be missing? Project specific?

Could it be linked twice somehow? Could you show the contents of the Podfile?
Ah, yes, it was linked twice through an category.
Sorry for the hassle, thanks for the help!
Not at all – I've done this before. It's worse when the compiler doesn't catch it, trust me.
@mergesort I think I'm haveing the same issue you did. Would be super helpful if you could elaborate on how you determined that it was linked twice and what you did about it.
@solidfox look inside your build phases, I bet it was double linked in there somewhere
Searched high and low, even tried removing the Link Binary with Libraries phase altogether. Still getting tons of errors like Reference to 'SDWebImageRetryFailed' is ambiguous and Duplicate definition of category 'WebCache' on interface 'UIImageView'. (Not just for SDWebImage, other pods as well.)
@solidfox if you could post a Podfile and/or a sample project, that'd be super helpful. Thanks!
I have similar problem with enum, but I solved it. I have local pod, and in main Podfile I have option "use_frameworks!". And in some places I add this pod as @import MyPod;, and in some places of the app I used as #include "MyPod.h";. So, when I replace it and use everywhere @import MyPod; then it's solved.
I believe @import is not the same as a quoted "" import, it is actually closer if not the same as a angled bracket <> import. So that makes sense.
Most helpful comment
I have similar problem with enum, but I solved it. I have local pod, and in main Podfile I have option "use_frameworks!". And in some places I add this pod as
@import MyPod;, and in some places of the app I used as#include "MyPod.h";. So, when I replace it and use everywhere@import MyPod;then it's solved.