无法打开文件"Pods.xcconfig",因为没有此类文件

use*_*875 32 git ios cocoapods

如何解决这个问题.我从Git repo下载了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.
Run Code Online (Sandbox Code Playgroud)

wzb*_*zon 25

重启Xcode帮助了我.Pod updateinstall没有帮助.


Ale*_*Cio 22

我发现了一个很好的提示问题里面CocoaPodsGitHub,试试这个:

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


Roc*_*era 5

从终端转到您的项目目录

运行“ pod更新”