【问题标题】:CocoaPods with Xcode 10 RuntimeError Xcodeproj doesn't know about the following attributes带有 Xcode 10 RuntimeError Xcodeproj 的 CocoaPods 不知道以下属性
【发布时间】:2018-09-06 08:17:57
【问题描述】:

我正在尝试使用 pod install 安装一个 pod,并收到以下错误:

RuntimeError - [!] Xcodeproj doesn't know about the following attributes {"inputFileListPaths"=>[], "outputFileListPaths"=>[]} for the 'PBXShellScriptBuildPhase' isa.

我正在使用 CocoaPods 1.5.3 和 Xcode 10。

【问题讨论】:

    标签: cocoapods xcode10


    【解决方案1】:

    这肯定会奏效,它对我有用。干杯!!!

    您必须从 project.pbxproj 文件中删除以下内容。

    删除关注

      inputFileListPaths = (
    
      );
    
    
      outputFileListPaths = (
    
      );
    

    【讨论】:

    • 很好,无需安装预版本即可为我工作。你拯救了我的一天
    • @JigneshChanchiya 谢谢!!
    【解决方案2】:

    这是 Xcode 10 引入的已知错误,已在 CocoaPods 1.6.0 中修复。目前(2019 年 1 月)它处于测试阶段,因此您可以使用

    sudo gem install cocoapods --pre
    

    可在here 找到 CocoaPods 1.5.3 的替代解决方案。

    【讨论】:

    • 这对我有用(使用测试版可可豆荚)。谢谢。
    【解决方案3】:

    【讨论】:

      【解决方案4】:

      ...另外,对于@Purnendu roy 提供的解决方案,这里是访问上述 project.pbxproj 文件的方法。 (右键单击 .xcodeproj 文件)

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2019-01-14
        • 2017-02-09
        • 2022-06-30
        • 2022-11-07
        • 2021-01-07
        • 2014-09-03
        • 2023-02-24
        • 1970-01-01
        相关资源
        最近更新 更多