Home ios - xcode troubleshooting
Post
Cancel

ios - xcode troubleshooting

How to compile specific files in objective-c++ and the rest of the project in objective-c

  1. You should set “According to file type” to “Complile Sources As”,
  2. Set “-ObjC++” to the “Other Linker Flags”
  3. 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.

This post is licensed under CC BY 4.0 by the author.