My project has a UIImage
category function that I want to call from another class. I properly import the header file for the image category and I get the projec
May be because you write imageNamed
instead of imageNamedDR
in the interface..
Another possibility.
You have the implementation of category but do not have an interface. I mean you forgot to declare in *.h the interface of your category.
I had the same issue and had to apply this fix as well. My NSDate-Extensions.m source file wasn't compiling so I had to go into Project Settings, then select the appropriate target, then click the "Build Phases" tab, then expand the "Compile Sources" items, then click the + symbol and manually add my NSDate-Extensions.m file.
I had this error message and I am using Cocoapods. To fix the error, I just needed to call pod install
again to create all the necessary linking correctly.
A couple possibilities:
UIImage+TTShare.m
into your target. So while you have the header, you're not compiling the implementation.-all_load
to the Other Linker Flags build setting for the app linking against the library.If you want to use Category method, you must add -ObjC to the Other Linker Flags build setting of your APP.