【发布时间】:2012-10-03 07:54:14
【问题描述】:
我最近为 iOS 6 SDK 安装了 xcode 4.5,但现在当我尝试在其上运行我的应用程序时,它给了我库错误。我搜索了许多主题,但找不到解决方案。我在下面附上了我的错误
clang: error: -Z-reserved-lib-stdc++: 'linker' input unused when '-c' is present
Command /Volumes/Xcode/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
我的 C++/C/Objective C 编译器 == Apple LLVM 编译器 4.1,虽然我的源代码在 LLVM 编译器 3.1 上运行良好,但现在在新的 xcode 3.1 中不可用。
我面临的主要问题是我的项目中 coreplot 的静态库,就像在 3.1 中一样,它工作正常,没有任何错误。
我尝试在 Coreplot 静态库中更改标头搜索路径、其他链接器标志、库搜索路径、将活动架构构建为 NO 以创建正确的 ipa,但问题没有解决。寻找建议。
【问题讨论】:
-
您在 additional compiler 或 additional linker 标志中有什么东西吗?
-
我删除了我的 xcode 4.5 并重新安装 4.3.3 并解决了问题,但是如何将我的源代码与 xcode 4.5 和 LLVM 4.1 一起使用
标签: ios xcode ios4 core-plot objective-c-blocks