ios - 尝试更新 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 的相关问题...
RuntimeError - [Xcodeproj] 未知对象版本
https://github.com/CocoaPods/CocoaPods/issues/10432 [关闭] [2 条评论]
一天前
RuntimeError - [Xcodeproj] 未知的对象版本。
https://github.com/CocoaPods/CocoaPods/issues/10259 [关闭] [5 条评论]
5 周前
RuntimeError - [Xcodeproj] 未知的对象版本。
https://github.com/CocoaPods/CocoaPods/issues/7697 [关闭] [32 条评论]
2021 年 1 月 1 日
还有 58 个:
[!] [!] 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
解决方案
推荐阅读
- json - 使用 pljson 存储在 oracle apex 经典报告中的集合中的 Json 字符串
- javascript - 用于检查可用性的 Angular 验证器
- angular - 角度获取数组类型错误:无法读取未定义的属性“1”
- sql-server - 谷歌应用程序脚本 jdbc 连接中的“不支持集成安全性”
- ios - 协议问题中的 Swift 泛型类型。协议只能用作通用约束
- python - 如何修复以下代码中的损坏管道错误?
- python - 是否有在图像上应用置换贴图/矩阵的功能?
- jasmine - 量角器:如果元素未显示,则继续测试
- javascript - 由 DOM javascript 创建的表如何切换一行显示/隐藏?
- c - c 在字符串中搜索目标字符串