If Xcode complains when linking, e.g. Library not found for -lPods
, it doesn‘t detect the implicit dependencies:
- 1.Go to Product > Edit Scheme
- 2.Click on Build
- 3.Add the
Pods
static library, and make sure it‘s at the top of the list
- 4.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 5.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.
- 6.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".
时间: 2024-10-11 08:02:11