我按照以下步骤操作.在哪种情况下,我们必须在Header搜索路径中使用递归.如果有错误,请帮忙吗?
1)Adding coreplot library and its headers in Xcode project.(ticked
for copy locally)2)converted compiler to LLVM GCC 4.2 in project build settings.(not in
target build setting)3)Compiler for thumb will be “NO”
4)Added Header Search Path in project build settings as,with
recursive
“$(SRCROOT)/Libs/CorePlot/CorePlotHeaders”5)Added Header Search Path in target build settings as
$(inherited)6)Library search path will be as empty in both target and project
build settings.7)-ObjC was added in Other linker flag in target build
settings.Removed -all_load from it.8)Always search path will be YES in both target and project build
settings.9)Build archive architecture only will be YES.
解决方法
Copy the CorePlotHeaders directory to your Xcode project
Copy the Core Plot library to your Xcode project.
Open your apps Target Build Settings,and for Other Linker Flags include this:
-ObjC (-all_load used to be required as a linker flag,but this is no longer needed in Xcode 4.2)
Add the QuartzCore framework to the project.
Change your C/C++ Compiler in the project build settings to LLVM GCC 4.2 or LLVM 1.6.
就我而言,我不需要更改我的C/C++编译器来使CorePlot正常工作