-
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
Pods static 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".

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".

本文提供了解决Xcode链接错误时遇到的Library not found for -lPods问题的方法,包括编辑构建方案、确保Pod源正确以及检查构建位置设置等步骤,帮助开发者快速定位并解决问题。
757

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



