ios – CocoaPods安装问题

前端之家收集整理的这篇文章主要介绍了ios – CocoaPods安装问题前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我刚刚运行pod安装,并在终端中收到此消息:
  1. CocoaPods 0.29.0 is available.
  2.  
  3. 2014-02-17 00:25:35.875 ruby[65690:507] CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary on line 908. Parsing will be abandoned. Break on _CFPropertyListMissingSemicolon to debug.
  4.  
  5. ――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
  6.  
  7. ### Report
  8.  
  9. * What did you do?
  10.  
  11. * What did you expect to happen?
  12.  
  13. * What happened instead?
  14.  
  15.  
  16. ### Stack
  17.  
  18. ```
  19. CocoaPods : 0.27.1
  20. Ruby : ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]
  21. RubyGems : 2.1.10
  22. Host : Mac OS X 10.9.1 (13B42)
  23. Xcode : 5.0.1 (5A2053)
  24. Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib
  25. Repositories : master - https://github.com/CocoaPods/Specs.git @ 8e7e6d8f6da821576f7b42fc513532790c8e1bc8
  26. ```
  27.  
  28. ### Podfile
  29.  
  30. ```ruby
  31. platform :ios,'7.0'
  32.  
  33. pod 'SWRevealViewController'
  34. pod 'MagicalRecord'
  35. pod 'AFNetworking','1.3.3'
  36. ```
  37.  
  38. ### Error
  39.  
  40. ```
  41. ArgumentError - Unable to read plist data from `"/Users/mac/Documents/Projects/StatsTrack/StatsTrack.xcodeproj/project.pbxproj"': Unexpected character / at line 1
  42. /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.14.1/lib/xcodeproj/project.rb:172:in `read_plist'
  43. /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.14.1/lib/xcodeproj/project.rb:172:in `initialize_from_file'
  44. /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.14.1/lib/xcodeproj/project.rb:93:in `open'
  45. /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/installer/analyzer.rb:488:in `block in compute_target_platforms'
  46. /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/installer/analyzer.rb:485:in `each'
  47. /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/installer/analyzer.rb:485:in `compute_target_platforms'
  48. /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/installer/analyzer.rb:55:in `analyze'
  49. /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/installer.rb:171:in `analyze'
  50. /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/installer.rb:94:in `block in resolve_dependencies'
  51. /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/user_interface.rb:52:in `section'
  52. /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/installer.rb:93:in `resolve_dependencies'
  53. /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/installer.rb:86:in `install!'
  54. /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/command/project.rb:38:in `run_install_with_update'
  55. /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/command/project.rb:68:in `run'
  56. /Library/Ruby/Gems/2.0.0/gems/claide-0.3.2/lib/claide/command.rb:206:in `run'
  57. /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/lib/cocoapods/command.rb:51:in `run'
  58. /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.27.1/bin/pod:19:in `<top (required)>'
  59. /usr/bin/pod:23:in `load'
  60. /usr/bin/pod:23:in `<main>'
  61. ```
  62.  
  63. ――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
  64.  
  65. [!] Oh no,an error occurred.
  66.  
  67. Search for existing github issues similar to yours:
  68. https://github.com/CocoaPods/CocoaPods/search?q=Unable+to+read+plist+data+from+%60%22%2FUsers%2Fmac%2FDocuments%2FProjects%2FStatsTrack%2FStatsTrack.xcodeproj%2Fproject.pbxproj%22%27%3A+Unexpected+character+%2F+at+line+1&type=Issues
  69.  
  70. If none exists,create a ticket,with the template displayed above,on:
  71. https://github.com/CocoaPods/CocoaPods/issues/new

如何解决

解决方法

我以前也有同样的问题.我通过在终端中放置以下行来修复它:
  1. cd ~/.cocoapods/repos
  2. rm -rf master
  3. pod setup

猜你在找的iOS相关文章