RuntimeError - [Xcodeproj] Unknown object version.解决方法
wjw:layoutInScrollView username$ pod install
Analyzing dependencies
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance ――― MARKDOWN TEMPLATE ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ### Command ```
/Users/username/.rvm/rubies/ruby-2.4./bin/pod install
``` ### Report * What did you do? * What did you expect to happen? * What happened instead? ### Stack ```
CocoaPods : 1.3.
Ruby : ruby 2.4.1p111 (-- revision ) [x86_64-darwin16]
RubyGems : 2.6.
Host : Mac OS X 10.13. (17E199)
Xcode : ()
Git : git version 2.15. (Apple Git-)
Ruby lib dir : /Users/username/.rvm/rubies/ruby-2.4./lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ bae6174a62acba399199f905e56b38f82581dd0e
``` ### Plugins ```
cocoapods-deintegrate : 1.0.
cocoapods-plugins : 1.0.
cocoapods-search : 1.0.
cocoapods-stats : 1.0.
cocoapods-trunk : 1.3.
cocoapods-try : 1.1.
``` ### Podfile ```ruby
platform :ios, '8.0' target:'layoutInScrollView' do pod "AFNetworking", '~> 3.1.0'
pod "Masonry", '~>1.1.0'
pod 'MBProgressHUD', '1.1.0' end
``` ### Error ```
RuntimeError - [Xcodeproj] Unknown object version.
/Users/username/.rvm/gems/ruby-2.4.@global/gems/xcodeproj-1.5./lib/xcodeproj/project.rb::in `initialize_from_file'
/Users/username/.rvm/gems/ruby-2.4.@global/gems/xcodeproj-1.5./lib/xcodeproj/project.rb::in `open'
/Users/username/.rvm/gems/ruby-2.4.@global/gems/cocoapods-1.3./lib/cocoapods/installer/analyzer.rb::in `block ( levels) in inspect_targets_to_integrate'
/Users/username/.rvm/gems/ruby-2.4.@global/gems/cocoapods-1.3./lib/cocoapods/installer/analyzer.rb::in `each'
/Users/username/.rvm/gems/ruby-2.4.@global/gems/cocoapods-1.3./lib/cocoapods/installer/analyzer.rb::in `block in inspect_targets_to_integrate'
/Users/username/.rvm/gems/ruby-2.4.@global/gems/cocoapods-1.3./lib/cocoapods/user_interface.rb::in `section'
/Users/username/.rvm/gems/ruby-2.4.@global/gems/cocoapods-1.3./lib/cocoapods/installer/analyzer.rb::in `inspect_targets_to_integrate'
/Users/username/.rvm/gems/ruby-2.4.@global/gems/cocoapods-1.3./lib/cocoapods/installer/analyzer.rb::in `analyze'
/Users/username/.rvm/gems/ruby-2.4.@global/gems/cocoapods-1.3./lib/cocoapods/installer.rb::in `analyze'
/Users/username/.rvm/gems/ruby-2.4.@global/gems/cocoapods-1.3./lib/cocoapods/installer.rb::in `block in resolve_dependencies'
/Users/username/.rvm/gems/ruby-2.4.@global/gems/cocoapods-1.3./lib/cocoapods/user_interface.rb::in `section'
/Users/username/.rvm/gems/ruby-2.4.@global/gems/cocoapods-1.3./lib/cocoapods/installer.rb::in `resolve_dependencies'
/Users/username/.rvm/gems/ruby-2.4.@global/gems/cocoapods-1.3./lib/cocoapods/installer.rb::in `install!'
/Users/username/.rvm/gems/ruby-2.4.@global/gems/cocoapods-1.3./lib/cocoapods/command/install.rb::in `run'
/Users/username/.rvm/gems/ruby-2.4.@global/gems/claide-1.0./lib/claide/command.rb::in `run'
/Users/username/.rvm/gems/ruby-2.4.@global/gems/cocoapods-1.3./lib/cocoapods/command.rb::in `run'
/Users/username/.rvm/gems/ruby-2.4.@global/gems/cocoapods-1.3./bin/pod::in `<top (required)>'
/Users/username/.rvm/rubies/ruby-2.4./bin/pod::in `load'
/Users/username/.rvm/rubies/ruby-2.4./bin/pod::in `<main>'
``` ――― TEMPLATE END ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― [!] Oh no, an error occurred. Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=%5BXcodeproj%5D+Unknown+object+version.&type=Issues If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md Don't forget to anonymize any private data! Looking for related issues on cocoapods/cocoapods...
- Pod init. Unknown object version
https://github.com/CocoaPods/CocoaPods/issues/7907 [closed] [2 comments]
weeks ago - RuntimeError - [Xcodeproj] Unknown object version.
https://github.com/CocoaPods/CocoaPods/issues/7697 [closed] [27 comments]
days ago - Unknown object version
https://github.com/CocoaPods/CocoaPods/issues/7760 [closed] [1 comment]
May and more at:
https://github.com/cocoapods/cocoapods/search?q=[Xcodeproj]%20Unknown%20object%20version.&type=Issues&utf8=✓
wjw:layoutInScrollView username$ ruby --v
ruby: invalid option --v (-h will show valid options) (RuntimeError)
wjw:layoutInScrollView username$ ruby -v
ruby 2.4.1p111 (-- revision ) [x86_64-darwin16]
引发这个问题的原因可能是我再工程中用cocopods导入了本地的SDK,中间有用到从本地添加sdk。
然后再新建其他项目时,再用cocopods 的 install命令就报了这个错。网上的答案很多。我试了很有效:
在终端执行命令:
gem install cocoapods --pre
wjw:layoutInScrollView username$ gem install cocoapods --pre
Fetching: cocoapods-core-1.5..gem (%)
Successfully installed cocoapods-core-1.5.
Fetching: cocoapods-deintegrate-1.0..gem (%)
Successfully installed cocoapods-deintegrate-1.0.
Fetching: cocoapods-downloader-1.2..gem (%)
Successfully installed cocoapods-downloader-1.2.
Fetching: molinillo-0.6..gem (%)
Successfully installed molinillo-0.6.
Fetching: atomos-0.1..gem (%)
Successfully installed atomos-0.1.
Fetching: nanaimo-0.2..gem (%)
Successfully installed nanaimo-0.2.
Fetching: xcodeproj-1.5..gem (%)
Successfully installed xcodeproj-1.5.
Fetching: cocoapods-1.5..gem (%)
Successfully installed cocoapods-1.5.
Parsing documentation for cocoapods-core-1.5.
Installing ri documentation for cocoapods-core-1.5.
Parsing documentation for cocoapods-deintegrate-1.0.
Installing ri documentation for cocoapods-deintegrate-1.0.
Parsing documentation for cocoapods-downloader-1.2.
Installing ri documentation for cocoapods-downloader-1.2.
Parsing documentation for molinillo-0.6.
Installing ri documentation for molinillo-0.6.
Parsing documentation for atomos-0.1.
Installing ri documentation for atomos-0.1.
Parsing documentation for nanaimo-0.2.
Installing ri documentation for nanaimo-0.2.
Parsing documentation for xcodeproj-1.5.
Installing ri documentation for xcodeproj-1.5.
Parsing documentation for cocoapods-1.5.
Installing ri documentation for cocoapods-1.5.
Done installing documentation for cocoapods-core, cocoapods-deintegrate, cocoapods-downloader, molinillo, atomos, nanaimo, xcodeproj, cocoapods after seconds
gems installed
执行 pod install
Analyzing dependencies
Downloading dependencies
Installing AFNetworking (3.1.)
Installing MBProgressHUD (1.1.)
Installing Masonry (1.1.)
Generating Pods project
Integrating client project [!] Please close any current Xcode sessions and use `layoutInScrollView.xcworkspace` for this project from now on.
Sending stats
Pod installation complete! There are dependencies from the Podfile and total pods installed.
RuntimeError - [Xcodeproj] Unknown object version.解决方法的更多相关文章
- 解决[Xcodeproj] Unknown object version错误
错误描述: RuntimeError - [Xcodeproj] Unknown object version. /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.2 ...
- mac 上运行cassandra出现的java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException: : : unknown error错误解决方法
mac 上运行cassandra出现的java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostExce ...
- Vue报错:Uncaught TypeError: Cannot assign to read only property’exports‘ of object’#<Object>‘的解决方法
发现问题 运行一下以前的一个Vue+webpack的 vue仿新闻网站 小项目,报错 由于自己vue学习不深入,老是这个报错,找了好久(确切的说是整整一下午^...^)才找到原因 -v- Uncau ...
- Ubuntu 14.4 Django模型迁移到数据库提示 LookupError: unknown encoding: utf8mb4 解决方法
由于数据库中需要存储emoji表情,因此需要mysql支持utf8mb4,参考前面的文章升级数据库. 但是由于服务器上面的python-mysqldb连接包版本为1.2.3不支持utf8mb4,因此报 ...
- elipse手机设备显示Target unknown或者offline解决方法
参考资料: http://blog.csdn.net/yuanjingjiang/article/details/11297433 http://www.educity.cn/wenda/153487 ...
- identity server4 授权成功页面跳转时遇到错误:Exception: Correlation failed. Unknown location的解决方法
一.异常信息描述 错误信息,看到这个页面是否耳熟能详担又不知道怎么解决 ,坑死个人不偿命,,,,,,,, 二.处理方法 1.在web项目中增加类SameSiteCookiesServiceCollec ...
- unsupported major.minor version 解决方法
转载自http://hi.baidu.com/fatchong/blog/item/191da23b478bbfef15cecbae.html 一直以来都是用jdk1.5,这次 ...
- 错误“Object reference not set to an instance of an object”的解决方法
在进行unity游戏制作的C#代码编写时,会遇到“NullReferenceException: Object reference not set to an instance of an objec ...
- gluster peer probe: failed: Probe returned with unknown errno 107解决方法
当在glusterfs中将服务器加到存储池中,及运行”gluster peer probe server”命令, 遇到peer probe: failed: Probe returned with u ...
随机推荐
- sringboot项目在tomcat上的部署
sringboot项目在tomcat上的部署原文链接: https://blog.csdn.net/zhaoyahui_666/article/details/78283559#comments 20 ...
- 详解nginx 配置多个tomcat共用80端口
场景:项目1放在tomcat1中,项目2放在tomcat2中,两个tomcat放在同一台服务器上,需要共享80端口访问注意:这里和集群部署是不同的,集群部署是一个项目放在多个tomcat中.这里通过n ...
- ASP.NET CORE中判断是否移动端打开网页
using Microsoft.AspNetCore.Http;using System;using System.Collections.Generic;using System.Text;usin ...
- 利用linux的mtrace命令定位内存泄露(Memory Leak)
一谈到内存泄露, 多数程序猿都闻之色变. 没错, 内存泄露非常easy引入. 但非常难定位. 以你我的手机为例(如果不常常关机). 如果每天泄露一些内存, 那么開始的一个星期, 你会发现手机好好的. ...
- 物联网架构成长之路(20)-申请免费SSL证书
0.前言 今天域名备案申请下来了,接下来就是申请个SSL证书,现在普通的网站没有SSL都不好意思见人了.可是稍微好点的企业级SSL证书还是比较贵的.不过还好有免费的可以用.只不过要定时去续时间.这个不 ...
- Basic SAP Data Types
Basic SAP Data Types 6 out of 11 rated this helpful - Rate this topic The parameter types that the M ...
- STM32 多通道ADC采样,采用Timer1进行采样率控制,利用DMA进行传输
http://blog.csdn.net/varding/article/details/17559399 http://www.51hei.com/stm32/3842.html https://w ...
- MAC OS查看端口占用情况及杀死进程
终端命令 sudo lsof -i :9000 COMMAND PID USER FD TYPE DEVICE ...
- 【css】zSass - 用 sass 编写 css
zSass 是自己整理的一个 sass 库,参考了 sassCore. 目录结构 variables.scss 默认值设置. reset.scss 重置浏览器样式.(参考:normalize) com ...
- Service 中的 onStart 和 onStartCommand
在自定义的service中,写了onStart和onStartCommand, public class HttpWebService extends Service { @Override publ ...