【发布时间】:2013-07-11 02:36:32
【问题描述】:
我现在正在使用Xcode 4.6,但无法在设备上构建我的应用程序,但可以在模拟器上完美运行。它正在寻找我的lbxml2,我已经按照其他用户提供的解决方案,例如在Build Setting 下添加"${SDK_DIR}/usr/include/libxml2" 到Header Search Paths,包括在Link Binary With Libraries 下Link Binary With Libraries,但仍然没有运气。
在我切换到Xcode 4.6 之前,它建立在Xcode 4.5 之上。所以,我真的不知道出了什么问题。
谢谢!
编辑:
我收到此错误:
ld: library not found for -lxml2
clang-real++: error: linker command failed with exit code 1 (use -v to see invocation)
Command /Applications/Xcode 4.6/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ failed with exit code 1
【问题讨论】:
-
在尝试为设备构建时,您从 Xcode 中得到了什么样的错误?
标签: ios xcode4.5 libxml2 xcode4.6