前言:记录一些在CocoaPods使用过程中遇到的问题,本地环境:Xcode9.0

  1. 发现有的时候在执行pod init的时候不能正常地创建出来pod File文件,显示的错误如下:
 1 ――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
 2 
 3 ### Command
 4 
 5 ```
 6 /Users/wangyongwangyongwang/.rvm/rubies/ruby-2.3.0/bin/pod init
 7 ```
 8 
 9 ### Report
10 
11 * What did you do?
12 
13 * What did you expect to happen?
14 
15 * What happened instead?
16 
17 
18 ### Stack
19 
20 ```
21    CocoaPods : 1.0.1
22         Ruby : ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin15]
23     RubyGems : 2.6.6
24         Host : Mac OS X 10.12.6 (16G29)
25        Xcode : 9.0 (9A235)
26          Git : git version 2.10.1
27 Ruby lib dir : /Users/wangyongwangyongwang/.rvm/rubies/ruby-2.3.0/lib
28 Repositories : master - https://github.com/CocoaPods/Specs.git @ 74d8002565cb1b582426b5affef1b97991b4c14c
29 ```
30 
31 ### Plugins
32 
33 ```
34 cocoapods-deintegrate : 1.0.1
35 cocoapods-plugins     : 1.0.0
36 cocoapods-search      : 1.0.0
37 cocoapods-stats       : 1.0.0
38 cocoapods-trunk       : 1.0.0
39 cocoapods-try         : 1.1.0
40 ```
41 
42 ### Error
43 
44 ```
45 RuntimeError - [Xcodeproj] Unknown object version.
46 /Users/wangyongwangyongwang/.rvm/gems/ruby-2.3.0@global/gems/xcodeproj-1.3.0/lib/xcodeproj/project.rb:217:in `initialize_from_file'
47 /Users/wangyongwangyongwang/.rvm/gems/ruby-2.3.0@global/gems/xcodeproj-1.3.0/lib/xcodeproj/project.rb:102:in `open'
48 /Users/wangyongwangyongwang/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.0.1/lib/cocoapods/command/init.rb:41:in `validate!'
49 /Users/wangyongwangyongwang/.rvm/gems/ruby-2.3.0@global/gems/claide-1.0.0/lib/claide/command.rb:333:in `run'
50 /Users/wangyongwangyongwang/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.0.1/lib/cocoapods/command.rb:50:in `run'
51 /Users/wangyongwangyongwang/.rvm/gems/ruby-2.3.0@global/gems/cocoapods-1.0.1/bin/pod:55:in `<top (required)>'
52 /Users/wangyongwangyongwang/.rvm/rubies/ruby-2.3.0/bin/pod:22:in `load'
53 /Users/wangyongwangyongwang/.rvm/rubies/ruby-2.3.0/bin/pod:22:in `<main>'
54 /Users/wangyongwangyongwang/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'
55 /Users/wangyongwangyongwang/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>'
56 ```
57 
58 ――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
59 
60 [!] Oh no, an error occurred.
61 
62 Search for existing GitHub issues similar to yours:
63 https://github.com/CocoaPods/CocoaPods/search?q=%5BXcodeproj%5D+Unknown+object+version.&type=Issues
64 
65 If none exists, create a ticket, with the template displayed above, on:
66 https://github.com/CocoaPods/CocoaPods/issues/new
67 
68 Be sure to first read the contributing guide for details on how to properly submit a ticket:
69 https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md
70 
71 Don't forget to anonymize any private data!
72 
73 wangwang:WWTestCocoaPodsError wangyongwangyongwang$ 
执行pod init的时候的错误提示

相关文章:

  • 2022-02-04
  • 2021-12-20
  • 2021-07-05
  • 2021-09-27
  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-04-01
  • 2021-11-07
  • 2021-04-14
  • 2021-04-04
  • 2021-09-29
  • 2021-09-19
  • 2021-10-28
相关资源
相似解决方案