diff: /../Podfile.lock: No such file or directory

 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.

ok,某次pod update之后,你或许会遇到这个错误提示的时候,不要着急,Google一番以后,就会得以下解决方法:

      rm -rf MyProject.xcworkspace
      rm -rf Podifile.lock
      pod install
      clean  PROJECT 
      Build

好吧,如果你足够幸运,you will meet successful,
但令人沮丧的是,很多人可能仍是Failed,
抱歉我也没法说出来错误的原因到底是什么,这里错误原因应该很多,我只能分享一下我遇到的情况的解决方法:

我的PodFile文件里是这样的:

platform :ios , '7.0'
pod 'AFNetworking' , '~> 2.5.0'

听从Google的建议,我加入了‘target’ and ‘end’:

platform :ios , '7.0'

target "我的工程名字"(此处是双引号) do

pod 'AFNetworking' , '~> 2.5.0'

end

再次

pod setup
pod install

Build

发现3个Errors变成了一个:类似637E0C380E75D243D743ACA3 xxxx Not Found,然后去YourProject.xcodeproj/project.pbxproj
搜索这串数字,类似平时我们用svn时文件冲突的处理方法一样,删除掉这段

637E0C380E75D243D743ACA3 /* Embed Pods Frameworks */ = {
    isa = PBXShellScriptBuildPhase;
    buildActionMask = 2147483648;
    files = (
    );
    inputPaths = (
    );
    name = "Embed Pods Frameworks";
    outputPaths = (
    );
    runOnlyForDeploymentPostprocessing = 0;
    shellPath = /bin/sh;
    shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-frameworks.sh\"\n";
    showEnvVarsInLog = 0;
};

然后,Build Successful了。

God Bless U.

你可能感兴趣的:(diff: /../Podfile.lock: No such file or directory)