【发布时间】:2014-08-25 11:47:21
【问题描述】:
如何解决这个问题。我已经从 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.
【问题讨论】:
-
尝试在你的项目目录中运行
pod install。 -
@dasdom 当我尝试安装 pod 时出现错误,例如 - ssh:无法解析主机名 github.com:提供节点名或服务名,或未知致命:无法从远程存储库读取。请确保您拥有正确的访问权限并且存储库存在。