ios - 文件 “Pods.xcconfig” 无法打开,因为没有这样的文件

标签 ios git cocoapods

如何解决这个问题。我已经从 Git 存储库下载了 iOS 项目,当我尝试构建时,出现错误:

Check dependencies
The file “Pods.xcconfig” couldn’t be opened because there is no such file. (/Users/YoGesh/Desktop/Xy-3/Pods/Pods.xcconfig)
PhaseScriptExecution Check\ Pods\ Manifest.lock /Users/YoGesh/Library/Developer/Xcode/DerivedData/Xy-bmwkojrwthnvzdfxthnxeqgesekm/Build/Intermediates/Xy.build/Debug-iphonesimulator/Xy.build/Script-C0451AB63D7F4B73830000BA.sh
    cd /Users/YoGesh/Desktop/Xy-3
    /bin/sh -c /Users/YoGesh/Library/Developer/Xcode/DerivedData/Xy-bmwkojrwthnvzdfxthnxeqgesekm/Build/Intermediates/Xy.build/Debug-iphonesimulator/Xy.build/Script-C0451AB63D7F4B73830000BA.sh

diff: /../Podfile.lock: No such file or directory
diff: /Manifest.lock: No such file or directory
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

最佳答案

我找到了一个很好的提示 inside the issues GitHub 上的 CocoaPods,试试这个:

  1. 关闭你的项目(最好完全关闭 Xcode)
  2. 在您的项目中打开终端并执行 pod install
  3. 再次打开您的项目。如果仍然存在错误,请清理您的项目 ( Shift + cmd + K ),此后错误应该消失。

关于ios - 文件 “Pods.xcconfig” 无法打开,因为没有这样的文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24569183/

相关文章:

iOS swift : CGAffineTransformMakeRotation resets between roations

ios - 如何在 Swift 包管理器中添加 Reality 文件?

git - 如何删除 Git 中未跟踪的文件?

iOS - pod 更新后出现许多错误

ios - 外部框架中的重复符号

ios - CocoaPods 安装 SlackTextViewController 的 Swift/Xcode 7 问题

ios - 在 Swift 中没有导航 Controller 的情况下将栏按钮项添加到导航栏

ios - Swift 中的自定义组件

Git:文件时间戳和大小相同时没有区别

git clone repo 到远程机器