问题一
报错:_OBJC_CLASS_$_
方案:https://blog.csdn.net/duxinfeng2010/article/details/8265273
问题二:
1 [!] Oh no, an error occurred. 2 3 Search for existing GitHub issues similar to yours: 4 https://github.com/CocoaPods/CocoaPods/search?q=%5BXcodeproj%5D+Unknown+object+version.&type=Issues 5 6 If none exists, create a ticket, with the template displayed above, on: 7 https://github.com/CocoaPods/CocoaPods/issues/new 8 9 Be sure to first read the contributing guide for details on how to properly submit a ticket: 10 https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md 11 12 Don't forget to anonymize any private data! 13 14 Looking for related issues on cocoapods/cocoapods... 15 - RuntimeError - [Xcodeproj] Unknown object version. 16 https://github.com/CocoaPods/CocoaPods/issues/7458 [closed] [12 comments] 17 4 days ago 18 19 - RuntimeError - [Xcodeproj] Unknown object version. 20 https://github.com/CocoaPods/CocoaPods/issues/6992 [closed] [11 comments] 21 a week ago 22 23 - RuntimeError - [Xcodeproj] Unknown object version. 24 https://github.com/CocoaPods/CocoaPods/issues/6991 [closed] [11 comments] 25 03 Feb 2018 26 27 and 33 more at: 28 https://github.com/cocoapods/cocoapods/search?q=[Xcodeproj]%20Unknown%20object%20version.&type=Issues&utf8=✓ 29 HarelydeMacBook-Pro:testOne HuangGang$ gem install cocoapods --pre 30 ERROR: While executing gem ... (Errno::EACCES) 31 Permission denied @ rb_sysopen - /Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.7/LICENSE
以上的错误提示可以用下面的终端命令解决。
终端输入:
1 sudo gem install -n /usr/local/bin cocoapods --pre