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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 07:35:39  来源:igfitidea点击:

Pod Headers Can't be Found/LibPods.a Missing

iosobjective-cxcodecocoapods

提问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): 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,它会出现在下一项,等等,一直到空白处): 请注意,如果我注释掉 Mixpanel,那么下一项 Parse 就会发生错误。 如果我注释掉 Parse,它会发生在下一个项目,等等,一直到空白

libPods.a Missingtest image description here

libPods.a 缺失测试图像描述在这里

OtherAdmittedly I don't know if these are helpful, but they seem relevant (e.g. Framework Search Paths). enter image description hereenter image description here

其他诚然,我不知道这些是否有帮助,但它们似乎相关(例如框架搜索路径)。 在此处输入图片说明在此处输入图片说明

Things I have tried:

我尝试过的事情:

  1. Verifying I'm opening .xcworkspace and NOT .xcodeproj
  2. Reinstalling Cocoapods (sudo gem install cocoapods)
  3. Delete .xcworkspace, Podfile.lock, and Pods folder, and run pod installagain.
  1. 验证我正在打开 .xcworkspace 而不是 .xcodeproj
  2. 重新安装 Cocoapods (sudo gem install cocoapods)
  3. 删除 .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 下查看您是否为您正在构建的方案和目标设置了配置。