When refreshing the class library egorefreshtableheaderview from the drop-down menu, add the resource file to the project, but forget to assume that the quartzcore. Framework framework causes a compilation error:
Undefined symbols for architecture i386:
"_ Catransform3dmakerotation", referenced from:
-[Egorefreshtableheaderview setstate:] In EGORefreshTableHeaderView-6F75314CE1079327.o
"_ Objc_class _ $ _ calayer", referenced from:
Objc-class-ref in EGORefreshTableHeaderView-6F75314CE1079327.o
"_ Objc_class _ $ _ catransaction", referenced from:
Objc-class-ref in EGORefreshTableHeaderView-6F75314CE1079327.o
"_ Catransform3didentity", referenced from:
-[Egorefreshtableheaderview setstate:] In EGORefreshTableHeaderView-6F75314CE1079327.o
"_ Kcagravityresizeaspect", referenced from:
-[Egorefreshtableheaderview initwithframe: arrowimagename: textcolor:] In EGORefreshTableHeaderView-6F75314CE1079327.o
"_ Kcatransactiondisableactions", referenced from:
-[Egorefreshtableheaderview setstate:] In EGORefreshTableHeaderView-6F75314CE1079327.o
Ld: symbol (s) not found for architecture i386
Clang: Error: Linker command failed with exit code 1 (use-V to see Invocation)
Solution: targets --> build phases --> link binary with libraries --> quartzcore. Framework
When adding other class libraries, this error may also occur because no framework is added or the libraries on which they depend.
Undefined symbols for architecture i386: Compilation error caused by adding a third-party class library