how to solve: ld: library not found for

阅读: 评论:0

how to solve:   ld: library not found for

how to solve: ld: library not found for

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 libXYZ.a file is listed there.

本文发布于:2024-01-28 10:30:04,感谢您对本站的认可!

本文链接:https://www.4u4v.net/it/17064090076781.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:solve   ld   library
留言与评论(共有 0 条评论)
   
验证码:

Copyright ©2019-2022 Comsenz Inc.Powered by ©

网站地图1 网站地图2 网站地图3 网站地图4 网站地图5 网站地图6 网站地图7 网站地图8 网站地图9 网站地图10 网站地图11 网站地图12 网站地图13 网站地图14 网站地图15 网站地图16 网站地图17 网站地图18 网站地图19 网站地图20 网站地图21 网站地图22/a> 网站地图23