xcode 无法找到 Pod 标头/LibPods.a 丢失
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/31741650/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Pod Headers Can't be Found/LibPods.a Missing
提问by Trevor McKendrick
After pulling the changes a friend made to a repo, I get a build error related to CocoaPods.
在拉取朋友对存储库所做的更改后,我收到与 CocoaPods 相关的构建错误。
I believe the problem is that there's no/Xcode can't find libPods.a. But you tell me... here's some screenshots that might help:
我认为问题在于没有/Xcode 找不到 libPods.a。但是你告诉我......这里有一些屏幕截图可能会有所帮助:
Original error(note that if I comment out Mixpanel, the error then occurs for the next item, Parse. If I comment out Parse, it occurs for the next item, etc. all the way down to the white space):
原始错误(请注意,如果我注释掉 Mixpanel,那么下一项 Parse 就会出现错误。如果我注释掉 Parse,它会出现在下一项,等等,一直到空白处):
OtherAdmittedly I don't know if these are helpful, but they seem relevant (e.g. Framework Search Paths).
其他诚然,我不知道这些是否有帮助,但它们似乎相关(例如框架搜索路径)。
Things I have tried:
我尝试过的事情:
- Verifying I'm opening .xcworkspace and NOT .xcodeproj
- Reinstalling Cocoapods (sudo gem install cocoapods)
- Delete .xcworkspace, Podfile.lock, and Pods folder, and run
pod install
again.
- 验证我正在打开 .xcworkspace 而不是 .xcodeproj
- 重新安装 Cocoapods (sudo gem install cocoapods)
- 删除 .xcworkspace、Podfile.lock 和 Pods 文件夹,然后
pod install
再次运行。
采纳答案by Peter Segerblom
Try look at the project and look under Info->Configurations check that you have configurations set for the scheme and target you are building.
尝试查看项目并在 Info->Configurations 下查看您是否为您正在构建的方案和目标设置了配置。