how to solve: ld: library not found for -lXYZ
2015-12-16 06:38
253 查看
Xcode 链接的时候报错 形式如 ld: library not found for -lXYZ,其中XYZ时静态库的名字
解决方法:删除后再重新添加。
如果提示framework 找不到,也可以先删除后再重新添加。
It means you are trying to link to a library which is not found by the system. In your case that appears to be a simple static library. You should check the following:
Look for the corresponding item in red among your project files, with special attention to the Frameworks group (that's where people normally put libraries). If you find one, fix
the path or just remove and re-add the library manually.
Repeat this in the Link Binary with Libraries entry under the Build Phases tab in the project/target settings.
Check the Library Search Paths entry in the Build Settings tab in project/target settings. Make sure the path to your
is listed there.
解决方法:删除后再重新添加。
如果提示framework 找不到,也可以先删除后再重新添加。
It means you are trying to link to a library which is not found by the system. In your case that appears to be a simple static library. You should check the following:
Look for the corresponding item in red among your project files, with special attention to the Frameworks group (that's where people normally put libraries). If you find one, fix
the path or just remove and re-add the library manually.
Repeat this in the Link Binary with Libraries entry under the Build Phases tab in the project/target settings.
Check the Library Search Paths entry in the Build Settings tab in project/target settings. Make sure the path to your
libXYZ.afile
is listed there.
相关文章推荐
- POJ 3280 解题报告
- {Refractoring - Improving the design of existing code} - 1999
- PMC推出Smart系列解决方案 提供高效数据中心连接
- PMC推出Smart系列解决方案 提供高效数据中心连接
- Leetcode 经典题目题解
- 直接调用类成员函数地址(用汇编取类成员函数的地址,各VS版本还有所不同)
- 304. Range Sum Query 2D - Immutable
- 一个程序员的跨洋找工作分享
- C# 方法的调用
- UVA - 1374 Power Calculus(IDA*+剪枝)
- Latex 中文字体
- 303. Range Sum Query - Immutable
- LeetCode "Super Ugly Number" !
- 302. Smallest Rectangle Enclosing Black Pixels
- poj 1465 Multiple 静态节点+余数判重+非STL队列的广搜
- 全排列(递归和字典序)
- iOS 重用 collectionViewCell时出现文字层叠
- CSharpGL(7)对VAO和VBO的封装
- iOS 重用 collectionViewCell时出现文字层叠
- iOS CollectionView交互,CollectionViewCell点击操作