具有 Xcode 10 RuntimeError Xcodeproj 的 CocoaPods 不知道以下属性

CocoaPods with Xcode 10 RuntimeError Xcodeproj doesn't know about the following attributes

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

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

我正在使用 CocoaPods 1.5.3 和 Xcode 10.

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

安装它
sudo gem install cocoapods --pre

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

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

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

删除关注

  inputFileListPaths = (

  );


  outputFileListPaths = (

  );

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

gem update xcodeproj 为我工作,多亏了这个 post http://swiftdynamics.blogspot.com/2019/01/pod-install-issue-xcodeproj-doesnt-know_29.html