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.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容