9

我刚刚将 xcode 升级到 4.5,现在编译时出现错误:

ld: library not found for -lxml2.2.7.3
cland: error: linker command failed with exit code 1

升级后我没有更改我的代码......所以?

谢谢!

4

2 回答 2

18

单击您的项目☞ 目标☞ 构建阶段☞ 将二进制文件与库链接
然后删除lxml2.2.7.3.dylib和添加lxml2.dylib(如果您的项目不依赖于该库的特定版本)。

于 2012-10-15T08:15:58.227 回答
0

对于我的 ionic 项目,我发现打开 .xcworkspace 而不是 .xcodeproj 解决了这个问题

于 2018-06-05T15:29:47.747 回答