首页 > 解决方案 > 尝试更新 pod 时,终端给出错误

问题描述

使用 pod install 或 update 时,报错,请查看 pod 文件和日志。尝试了日志链接中给出的许多解决方案。

目标“测试”做

使用_frameworks!

pod 'GoogleSignIn'
pod 'Alamofire', '~> 4.7'
pod 'AlamofireObjectMapper', '~> 5.2'
pod 'RxSwift', '~> 5'

pod 'RxCocoa', '~> 5'
pod 'RxAlamofire'
pod 'Firebase/Core'
pod 'Firebase/DynamicLinks'
pod 'PINRemoteImage', '~> 3.0.1'
pod 'Firebase/Messaging'
pod 'Firebase/Analytics'
pod 'StatusAlert', '~> 1.1.1'
pod 'Firebase/Auth'

pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'FBSDKShareKit'
pod 'FBSDKPlacesKit'
pod 'MaterialComponents/ActivityIndicator'
pod 'SwiftMessages'
pod 'MaterialComponents/Snackbar'

结尾

错误


RuntimeError - [Xcodeproj] Unknown object version.

/Applications/CocoaPods.app/Contents/Resources/bundle/lib/ruby/gems/2.2.0/gems/xcodeproj-1.5.8/lib/xcodeproj/project.rb:218:in `initialize_from_file'

/Applications/CocoaPods.app/Contents/Resources/bundle/lib/ruby/gems/2.2.0/gems/xcodeproj-1.5.8/lib/xcodeproj/project.rb:103:in `open'

/Applications/CocoaPods.app/Contents/Resources/bundle/lib/ruby/gems/2.2.0/gems/cocoapods-1.5.2/lib/cocoapods/installer/analyzer.rb:918:in `block (2 levels) in inspect_targets_to_integrate'

/Applications/CocoaPods.app/Contents/Resources/bundle/lib/ruby/gems/2.2.0/gems/cocoapods-1.5.2/lib/cocoapods/installer/analyzer.rb:917:in `each'

/Applications/CocoaPods.app/Contents/Resources/bundle/lib/ruby/gems/2.2.0/gems/cocoapods-1.5.2/lib/cocoapods/installer/analyzer.rb:917:in `block in inspect_targets_to_integrate'

/Applications/CocoaPods.app/Contents/Resources/bundle/lib/ruby/gems/2.2.0/gems/cocoapods-1.5.2/lib/cocoapods/user_interface.rb:64:in `section'

/Applications/CocoaPods.app/Contents/Resources/bundle/lib/ruby/gems/2.2.0/gems/cocoapods-1.5.2/lib/cocoapods/installer/analyzer.rb:912:in `inspect_targets_to_integrate'

/Applications/CocoaPods.app/Contents/Resources/bundle/lib/ruby/gems/2.2.0/gems/cocoapods-1.5.2/lib/cocoapods/installer/analyzer.rb:78:in `analyze'

/Applications/CocoaPods.app/Contents/Resources/bundle/lib/ruby/gems/2.2.0/gems/cocoapods-1.5.2/lib/cocoapods/installer.rb:243:in `analyze'

/Applications/CocoaPods.app/Contents/Resources/bundle/lib/ruby/gems/2.2.0/gems/cocoapods-1.5.2/lib/cocoapods/installer.rb:154:in `block in resolve_dependencies'

/Applications/CocoaPods.app/Contents/Resources/bundle/lib/ruby/gems/2.2.0/gems/cocoapods-1.5.2/lib/cocoapods/user_interface.rb:64:in `section'

/Applications/CocoaPods.app/Contents/Resources/bundle/lib/ruby/gems/2.2.0/gems/cocoapods-1.5.2/lib/cocoapods/installer.rb:153:in `resolve_dependencies'

/Applications/CocoaPods.app/Contents/Resources/bundle/lib/ruby/gems/2.2.0/gems/cocoapods-1.5.2/lib/cocoapods/installer.rb:116:in `install!'

/Applications/CocoaPods.app/Contents/Resources/bundle/lib/ruby/gems/2.2.0/gems/cocoapods-1.5.2/lib/cocoapods/command/install.rb:41:in `run'

/Applications/CocoaPods.app/Contents/Resources/bundle/lib/ruby/gems/2.2.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'

/Applications/CocoaPods.app/Contents/Resources/bundle/lib/ruby/gems/2.2.0/gems/cocoapods-1.5.2/lib/cocoapods/command.rb:52:in `run'

/Applications/CocoaPods.app/Contents/Resources/bundle/lib/ruby/gems/2.2.0/gems/cocoapods-1.5.2/bin/pod:55:in `<top (required)>'

/Applications/CocoaPods.app/Contents/Resources/bundle/bin/pod:22:in `load'

/Applications/CocoaPods.app/Contents/Resources/bundle/bin/pod:22:in `<main>'

―――模板结束 ――――――――――――――――――――――――――――――――――――――――――― ――――――――――――――――――――</p>

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

搜索与您类似的现有 GitHub 问题:

https://github.com/CocoaPods/CocoaPods/search?q=%5BXcodeproj%5D+Unknown+object+version.&type=Issues

如果不存在,请使用上面显示的模板在以下位置创建票证:

https://github.com/CocoaPods/CocoaPods/issues/new

请务必先阅读贡献指南,了解有关如何正确提交工单的详细信息:

https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md

不要忘记匿名任何私人数据!

寻找有关 cocoapods/cocoapods 的相关问题...

还有 58 个:

https://github.com/cocoapods/cocoapods/search?q=%5BXcodeproj%5D%20Unknown%20object%20version.&type=Issues&utf8=✓</a>

[!] [!] Xcodeproj 不知道以下属性 {"inputFileListPaths"=>["${PODS_ROOT}/Target Support Files/Pods-Test/Pods-Test-frameworks-${CONFIGURATION}-input-files .xcfilelist"], "outputFileListPaths"=>["${PODS_ROOT}/Target Support Files/Pods-Test/Pods-Test-frameworks-${CONFIGURATION}-output-files.xcfilelist"]} 用于 'PBXShellScriptBuildPhase' isa .

如果此属性是由 Xcode 生成的,请提交问题:https ://github.com/CocoaPods/Xcodeproj/issues/new

[!] [!] Xcodeproj 不知道以下属性 {"inputFileListPaths"=>["${PODS_ROOT}/Target Support Files/Pods-Test/Pods-Test-resources-${CONFIGURATION}-input-files .xcfilelist"], "outputFileListPaths"=>["${PODS_ROOT}/Target Support Files/Pods-Test/Pods-Test-resources-${CONFIGURATION}-output-files.xcfilelist"]} for the 'PBXShellScriptBuildPhase' isa .

如果此属性是由 Xcode 生成的,请提交问题:https ://github.com/CocoaPods/Xcodeproj/issues/new

标签: ioscocoapodsxcode12

解决方案


推荐阅读