How to compile specific files in objective-c++ and the rest of the project in objective-c
- You should set “According to file type” to “Complile Sources As”,
- Set “-ObjC++” to the “Other Linker Flags”
- The last,you should modify the files’s suffix to .mm that reference the library method
Select the file you want to compile as Objective C++ from the file navigator, and then select the File Type in the file inspector view.
Setting specific file non-arc
-fno-objc-arc
Headers for my static library not found
I suggest using ${TARGET_BUILD_DIR}/ProjectCore
in User Header Search Paths
- it works for me.