I have a project "MyProject" which includes another static library project "Z1Theme". When I use a class from the static lib in the main project, I'm getting code completion and everything seems to work as expected:
If I build the project, I get the error
Building target 'Z1Theme' from 'Z1Theme' with configuration 'Debug' for architecture 'i386' using 'Simulator - iOS 6.0' sdk
Building target 'RestKit' from 'RestKit' with configuration 'Debug' for architecture 'i386' using 'Simulator - iOS 6.0' sdk
Building target 'MyProject' from 'MyProject' with configuration 'Debug' for architecture 'i386' using 'Simulator - iOS 6.0' sdk
The following build commands failed:
CompileC /Users/me/Library/Caches/appCode10/DerivedData/MyProject-debd1b7e/Build/Intermediates/MyProject.build/Debug-iphonesimulator/MyProject.build/Objects-normal/i386/MyClass.o MyProject/Classes/MyClass.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
no known instance method for selector 'baseTintColor'
If I build the same project using XCode, it builds and runs fine. What could be the problem? I did add the library as a dependency of the main project and I did add the lib into the "Link Binary With LIbraries" section.