ios Apple Mach-O 链接器错误 lxml
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12676885/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Apple Mach-O Linker Error lxml
提问by ApheX
I just upgraded xcode to 4.5 and now i get an error when compiling :
我刚刚将 xcode 升级到 4.5,现在编译时出现错误:
ld: library not found for -lxml2.2.7.3
cland: error: linker command failed with exit code 1
I did not change my code after the upgrade... So?
升级后我没有更改我的代码......所以?
thanks!
谢谢!
回答by borisdiakur
Click on your projekt ? target ? build phases ? link binary with libraries
then remove lxml2.2.7.3.dylib
and add lxml2.dylib
(if your project does not depend on a specific version of that library).
单击您的项目?目标 ?构建阶段 ? 将二进制文件与库链接,
然后删除lxml2.2.7.3.dylib
并添加lxml2.dylib
(如果您的项目不依赖于该库的特定版本)。
回答by Joe Nabeezy
For my ionic project, I found that opening the .xcworkspace instead of .xcodeproj fixed this issue
对于我的 ionic 项目,我发现打开 .xcworkspace 而不是 .xcodeproj 解决了这个问题