代码之家  ›  专栏  ›  技术社区  ›  Aleem

播客无法安装或更新

  •  0
  • Aleem  · 技术社区  · 6 年前

    我已经打开了我一个月前的项目,当我试图建立它时,显示出我的错误。

    错误:沙盒与podfile.lock不同步。运行“pod install”或更新Cocoapods安装。

    当我尝试安装“pod install”或更新“pod update”时,它会显示以下错误。

    [!]哦,不,发生了一个错误。

    搜索与您类似的现有GitHub问题: https://github.com/CocoaPods/CocoaPods/search?q=%5B%21%5D+Xcodeproj+doesn%27t+know+about+the+following+attributes+%7B%22inputFileListPaths%22%3D%3E%5B%5D%2C+%22outputFileListPaths%22%3D%3E%5B%5D%7D+for+the+%27PBXShellScriptBuildPhase%27+isa.%0AIf+this+attribute+was+generated+by+Xcode+please+file+an+issue%3A+https%3A%2F%2Fgithub.com%2FCocoaPods%2FXcodeproj%2Fissues%2Fnew&type=Issues

    如果不存在,则创建票据,模板显示在上面, 关于: https://github.com/CocoaPods/CocoaPods/issues/new

    请务必先阅读贡献指南,了解如何 正确提交票证: https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md

    如下截图所示 enter image description here

    我所做的一切

    • 删除驱动器数据
    • 关闭xcode,重新启动系统
    • 删除pods'deintegrate pod'
    • 但当我点击“pod install”命令时,它给了我一个错误。

    请帮助我哪里是问题和如何解决这个问题。 谢谢

    1 回复  |  直到 6 年前
        1
  •  0
  •   Niv    6 年前

    我建议您使用自制程序更新ruby- https://brew.sh ,此包管理器在许多情况下都很有用,安装后可以运行 brew install ruby 在终端上安装最新的ruby版本。

    以下是鲁比写的:

    Homebrew是MacOS上常用的包管理器。使用自制软件安装Ruby很简单: brew安装ruby 这应该安装最新的ruby版本。

    来源: https://www.ruby-lang.org/en/documentation/installation/