美文网首页
No such file or directory error:

No such file or directory error:

作者: 学而不思则罔思而不学则殆 | 来源:发表于2017-11-01 11:27 被阅读18次

    原文链接:
    http://www.cnblogs.com/jordanYang/p/6244031.html(怕链接失效,复制一份)
    错误:
    [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 in]

    在执行第三方demo的时候出现以下提示错误:
    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.
    百度之后得出以下方案:
    方案一:
    command+Q 退出 Xcode,重新执行pod install,之后再重新打开Xcode运行。
    正常 方案一: 即可解决问题.
    方案二:
    稍微麻烦一点,删除以下文件:
    xcworkspacePodfile.lockPods文件夹~/Library/Developer/Xcode/DerivedData路径下对应工程的文件夹

    之后重新执行pod install --verbose --no-repo-update
    方案三:
    1.设置Configurations
    选中Project->选择Info tab->看看Configurations是不是被设置为 None了,如果是None的话请改为Pods,如图:

    2.修改Pods脚本文件路径:
    右键工程根目录下的xxx.xcodeproj文件,显示包内容
    双击打开project.pbxproj文件
    查找"resources.sh", 把路径改为如下红框处:



    重新打开工程(双击workspace文件),到此应该是能正常编译运行了.

    方案四:
    1.找到项目根目录下的Podfile.lock文件,和Pods文件夹下的Manifest.lock文件
    2.然后复制Podfile.lock文件的内容替换掉Manifest.lock文件内的内容,好啦,至此问题解决

    相关文章

      网友评论

          本文标题:No such file or directory error:

          本文链接:https://www.haomeiwen.com/subject/cbbwpxtx.html