gpt4 book ai didi

iphone - 在 xcode 4.x 中添加静态库的 header 搜索路径困惑?

转载 作者:可可西里 更新时间:2023-11-01 05:45:44 24 4
gpt4 key购买 nike

我对在 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 时遇到了同样的问题,但我发现有一个更简单的过程:

  1. Copy the CorePlotHeaders directory to your Xcode project

  2. Copy the Core Plot library to your Xcode project.

  3. 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)

  1. Add the QuartzCore framework to the project.

  2. 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 搜索路径困惑?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14533483/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com