-
If Xcode complains when linking, e.g.
Library not found for -lPods, it doesn't detect the implicit dependencies:- Go to Product > Edit Scheme
- Click on Build
-
Add the
Podsstatic library, and make sure it's at the top of the list - Clean and build again
- If that doesn't work, verify that the source for the spec you are trying to include has been pulled from github. Do this by looking in /Pods/. If it is empty (it should not be), verify that the ~/.cocoapods/master//.podspec has the correct git hub url in it.
-
If still doesn't work, check your XCode build locations settings. Go to Preferences -> Locations -> Derived Data -> Advanced and set build location to "Relative to Workspace".

使cocopods管理开源库编译出现Library not found for -lPods问题的解决方法
最新推荐文章于 2025-04-24 10:09:43 发布
本文介绍了解决Xcode中Pods链接错误的方法,包括检查Pods静态库是否正确添加到项目中,验证从GitHub获取的源代码是否完整,以及调整Xcode的构建位置设置。
820

被折叠的 条评论
为什么被折叠?



