iphone – 在xcode 4.x中添加静态库的Header搜索路径中的混淆?

iphone – 在xcode 4.x中添加静态库的Header搜索路径中的混淆?,第1张

概述我在 xcode 4.5中添加核心图静态库时感到困惑.它与xcode 3.x版本不同.我尝试了很多东西,它没有找到头文件和链接器错误. 我按照以下步骤 *** 作.在哪种情况下,我们必须在Header搜索路径中使用递归.如果有错误,请帮忙吗? 1)Adding coreplot library and its headers in Xcode project.(ticked for copy locall 我在 xcode 4.5中添加核心图静态库时感到困惑.它与xcode 3.x版本不同.我尝试了很多东西,它没有找到头文件和链接器错误.

我按照以下步骤 *** 作.在哪种情况下,我们必须在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.

解决方法 我在几天前试图以这种方式添加CorePlot时遇到了同样的问题,但我发现有一个更简单的过程:

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正常工作

总结

以上是内存溢出为你收集整理的iphone – 在xcode 4.x中添加静态库的Header搜索路径中的混淆?全部内容,希望文章能够帮你解决iphone – 在xcode 4.x中添加静态库的Header搜索路径中的混淆?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://www.outofmemory.cn/web/1008183.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-22
下一篇 2022-05-22

发表评论

登录后才能评论

评论列表(0条)

保存