Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Malformed version number string #7765

Closed
vlazdra opened this issue May 22, 2018 · 48 comments
Closed

Malformed version number string #7765

vlazdra opened this issue May 22, 2018 · 48 comments
Assignees
Labels
d1:easy An easy ticket that is a good start for first-time contributors s2:confirmed Issues that have been confirmed by a CocoaPods contributor t2:defect These are known bugs. The issue should also contain steps to reproduce. PRs welcome!
Milestone

Comments

@vlazdra
Copy link

vlazdra commented May 22, 2018

Report

What did you do?

pod install

What did you expect to happen?

Install all pod dependencies correctly.

What happened instead?

ArgumentError - Malformed version number string

CocoaPods Environment

Stack

   CocoaPods : 1.5.2
        Ruby : ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin17]
    RubyGems : 2.7.7
        Host : Mac OS X 10.13.3 (17D102)
       Xcode : 9.2 (9C40b)
         Git : git version 2.14.3 (Apple Git-98)
Ruby lib dir : /Users/jenkins/.rvm/rubies/ruby-2.5.1/lib
Repositories :
               master - https://github.com/CocoaPods/Specs.git @fab7726d367d90b163a793e2f6419b69ee9b93c5

Installation Source

Executable Path: /Users/jenkins/.rvm/gems/ruby-2.5.1/bin/pod

Plugins

cocoapods-deintegrate : 1.0.2
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.0.0
cocoapods-trunk       : 1.3.0
cocoapods-try         : 1.1.0

Podfile

platform :ios, '8.0'

def pods
    pod 'GoogleMaps'
    pod 'GooglePlaces'
    pod 'Fabric'
    pod 'Crashlytics'
    pod 'CocoaLumberjack'
    pod 'SSZipArchive'
    pod 'ActionSheetPicker-3.0', '~> 2.2.0'
end

target 'projectdemo' do
    pods
end

target 'projectdemoStaging' do
    pods
end

target 'projectdemoDebug' do
    pods
end

target 'projectdemoMock' do
    pods
end

Project that demonstrates the issue

##Additional details

Adding a --verbose flag to the install command gives a little bit more insight into what happened.

Generating Pods project
  - Creating Pods project
  - Adding source files to Pods project
  - Adding frameworks to Pods project
  - Adding libraries to Pods project
  - Adding resources to Pods project
  - Linking headers
  - Installing targets
    - Installing target `ActionSheetPicker-3.0` iOS 4.3
    - Installing target `CocoaLumberjack` iOS 6.0
    - Installing target `SSZipArchive` iOS 4.0
    - Installing target `Pods-projectdemo` iOS 8.0

As you can see at the end when it does the project setup, it adds the targets with magic quotes which break the build.

@vlazdra vlazdra mentioned this issue May 22, 2018
@darkThanBlack
Copy link

darkThanBlack commented May 22, 2018

Command

/usr/local/bin/pod install

Report

  • What did you do?

  • What did you expect to happen?

  • What happened instead?

Stack

   CocoaPods : 1.5.2
        Ruby : ruby 2.3.3p222 (2016-11-21 revision 56859) [universal.x86_64-darwin17]
    RubyGems : 2.7.7
        Host : Mac OS X 10.13.4 (17E202)
       Xcode : 9.3.1 (9E501)
         Git : git version 2.15.1 (Apple Git-101)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
HEAD

Plugins

cocoapods-deintegrate : 1.0.2
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.0.0
cocoapods-trunk       : 1.3.0
cocoapods-try         : 1.1.0

Podfile

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'

inhibit_all_warnings!

target 'GrandRoutes' do

pod 'AFNetworking', '~> 3.1.0'
pod 'SDWebImage'
pod 'Masonry', '~> 1.1.0'
pod 'UITableView+FDTemplateLayoutCell', '~> 1.4'
pod 'MBProgressHUD'
pod 'MJExtension', '~> 3.0.13'
pod 'DoImagePickerController', '~> 1.6'
pod 'Realm'
pod 'IQKeyboardManager', '~> 4.0.5'
pod 'TOCropViewController', '~> 2.0.7'
pod 'AXWebViewController', '~> 0.3.3'
pod 'BaiduMapKit', '~> 3.0.0'
pod 'SDCycleScrollView'
pod 'Meiqia'
pod 'FDFullscreenPopGesture'
pod 'CocoaAsyncSocket'
pod 'ZLPhotoBrowser'
pod "MWPhotoBrowser", :podspec =>'https://raw.githubusercontent.com/moinku07/MWPhotoBrowser/master/MWPhotoBrowser.podspec'
pod 'ZFPlayer'

end

Error

ArgumentError - Malformed version number string
/Library/Ruby/Site/2.3.0/rubygems/version.rb:209:in `initialize'
/Library/Ruby/Site/2.3.0/rubygems/version.rb:200:in `new'
/Library/Ruby/Site/2.3.0/rubygems/version.rb:200:in `new'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb:123:in `embedded_content_settings'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb:68:in `generate'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb:39:in `save_as'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/installer/xcode/pods_project_generator/target_installer.rb:112:in `update_changed_file'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/installer/xcode/pods_project_generator/aggregate_target_installer.rb:96:in `block in create_xcconfig_file'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/installer/xcode/pods_project_generator/aggregate_target_installer.rb:93:in `each'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/installer/xcode/pods_project_generator/aggregate_target_installer.rb:93:in `create_xcconfig_file'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/installer/xcode/pods_project_generator/aggregate_target_installer.rb:18:in `block in install!'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/user_interface.rb:142:in `message'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/installer/xcode/pods_project_generator/aggregate_target_installer.rb:14:in `install!'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/installer/xcode/pods_project_generator.rb:181:in `block (2 levels) in install_libraries'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/installer/xcode/pods_project_generator.rb:179:in `each'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/installer/xcode/pods_project_generator.rb:179:in `block in install_libraries'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/user_interface.rb:142:in `message'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/installer/xcode/pods_project_generator.rb:167:in `install_libraries'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/installer/xcode/pods_project_generator.rb:65:in `generate!'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/installer.rb:184:in `block in generate_pods_project'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/installer.rb:183:in `generate_pods_project'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/installer.rb:119:in `install!'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/command/install.rb:41:in `run'
/Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'

@darkThanBlack
Copy link

also 'Malformed version number string'...OMG...

@endocrimes
Copy link
Member

@zedixns / @darkThanBlack It looks like this is crashing while trying to resolve the target swift version - Could you share an Xcode project that reproduces this please?

@vlazdra
Copy link
Author

vlazdra commented May 22, 2018

@dantoml Unfortunately I am not able to share the project, because it's commercial. I can assist you in any other way, that is not sharing of any source code. Hope you understand.

@endocrimes
Copy link
Member

@zedixns Unfortunately the only way I can work on this further is with a full repro case (and I don't currently have a recent version of Xcode around to try creating projects with).

The bare minimum we'd need would be a grep -i swift_version ./my-project.xcodeproj/project.pbxproj

@vlazdra
Copy link
Author

vlazdra commented May 22, 2018

@dantoml
The output is:

SWIFT_VERSION = 3.0;
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 3.0;

I have to note here that the actual project doesn't have any swift code in it. Don't know if that makes any difference.

@eploko
Copy link

eploko commented May 22, 2018

I haven't had the issue locally, but stumbled upon it in a Travis build. Turns out I can reproduce this locally by just updating to the latest rubygems.

bundle exec pod install fails with RubyGems 2.7.7, but works fine with 2.7.6.

@dnkoutso
Copy link
Contributor

Can you please try with CocoaPods master using https://bundler.io/?

@dnkoutso
Copy link
Contributor

Yes we really need a sample project here demonstrating the issue. It will help debug it.

@segiddins
Copy link
Member

Looks to be caused by the rubygems 2.7.7 release: rubygems/rubygems@v2.7.6...v2.7.7#diff-94d386526b8b558035d4e4c7602d647cR173

@dnkoutso dnkoutso added this to the 1.5.3 milestone May 22, 2018
@dnkoutso
Copy link
Contributor

This appears to be fixed on master, we will most likely do a 1.5.3 release.

@jonathanff
Copy link

jonathanff commented May 22, 2018

I'm also having this issue even after uninstalling and installing an older version of cocoa pods it's not working anymore.

I have tried:
Uninstalling Cocoapods gem
Uninstalling Bundler
Installing bundler to use cocoa pods master.

Nothing works Cocoapods is broken completely with this issue.

@segiddins segiddins self-assigned this May 22, 2018
@segiddins segiddins added t2:defect These are known bugs. The issue should also contain steps to reproduce. PRs welcome! d1:easy An easy ticket that is a good start for first-time contributors s2:confirmed Issues that have been confirmed by a CocoaPods contributor labels May 22, 2018
@LuXiong
Copy link

LuXiong commented May 23, 2018

I also encountered this issue. And I tried to start a new project, but the issue still exist while using pod install.

@LuXiong
Copy link

LuXiong commented May 23, 2018

bogon:PodTest deven$ pod install
Analyzing dependencies
Downloading dependencies
Installing AFNetworking (3.2.1)
Generating Pods project

――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

Command

/usr/local/bin/pod install

Report

  • What did you do?

  • What did you expect to happen?

  • What happened instead?

Stack

   CocoaPods : 1.5.2
        Ruby : ruby 2.3.3p222 (2016-11-21 revision 56859) [universal.x86_64-darwin17]
    RubyGems : 2.7.7
        Host : Mac OS X 10.13.4 (17E199)
       Xcode : 9.3.1 (9E501)
         Git : git version 2.15.1 (Apple Git-101)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib
Repositories : bigo-bigo-specs - http://gitlab.bigo.sg:8081/Bigo/Specs.git @ f2ad4499275f6a433c0aca874dc1c2b066e86c96
               master - https://github.com/CocoaPods/Specs.git @ a35415c0686f8d02dce098fa7b3657ff0f475d50

Plugins

cocoapods-deintegrate : 1.0.2
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.0.0
cocoapods-trunk       : 1.3.0
cocoapods-try         : 1.1.0

Podfile

# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'

target 'PodTest' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  # use_frameworks!

  # Pods for PodTest
  pod 'AFNetworking'

  target 'PodTestTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'PodTestUITests' do
    inherit! :search_paths
    # Pods for testing
  end

end

Error

ArgumentError - Malformed version number string 
/Library/Ruby/Site/2.3.0/rubygems/version.rb:209:in `initialize'
/Library/Ruby/Site/2.3.0/rubygems/version.rb:200:in `new'
/Library/Ruby/Site/2.3.0/rubygems/version.rb:200:in `new'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb:123:in `embedded_content_settings'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb:68:in `generate'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb:39:in `save_as'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/installer/xcode/pods_project_generator/target_installer.rb:112:in `update_changed_file'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/installer/xcode/pods_project_generator/aggregate_target_installer.rb:96:in `block in create_xcconfig_file'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/installer/xcode/pods_project_generator/aggregate_target_installer.rb:93:in `each'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/installer/xcode/pods_project_generator/aggregate_target_installer.rb:93:in `create_xcconfig_file'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/installer/xcode/pods_project_generator/aggregate_target_installer.rb:18:in `block in install!'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/user_interface.rb:142:in `message'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/installer/xcode/pods_project_generator/aggregate_target_installer.rb:14:in `install!'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/installer/xcode/pods_project_generator.rb:181:in `block (2 levels) in install_libraries'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/installer/xcode/pods_project_generator.rb:179:in `each'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/installer/xcode/pods_project_generator.rb:179:in `block in install_libraries'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/user_interface.rb:142:in `message'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/installer/xcode/pods_project_generator.rb:167:in `install_libraries'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/installer/xcode/pods_project_generator.rb:65:in `generate!'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/installer.rb:184:in `block in generate_pods_project'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/installer.rb:183:in `generate_pods_project'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/installer.rb:119:in `install!'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/command/install.rb:41:in `run'
/Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'

――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

[!] Oh no, an error occurred.

Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=Malformed+version+number+string+&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...

and 31 more at:
https://github.com/cocoapods/cocoapods/search?q=Malformed%20version%20number%20string%20&type=Issues&utf8=✓

@dnkoutso
Copy link
Contributor

It's been fixed, there is a PR for it.

@xngockhoix
Copy link

How can I get that fixed version?

@sofienB
Copy link

sofienB commented May 23, 2018

I have same issue :(

@LuXiong
Copy link

LuXiong commented May 23, 2018

I solved the problem by upgrading my ruby and reinstall the cocoa pod

@huangshoumin
Copy link

I also encountered this problem, and tried the following steps to solve it:

  1. Brew update instructions update Homebrew(because there is no prompt, it will wait for a while to be completed)
  2. Install RVM
  3. Use RVM to install the latest version of ruby(this time using ruby-2.4.1)
  4. Use the command sudo gem install -n /usr/local/bin cocoapods to reload cocoapods.

The problem is fixed

@paulb777
Copy link
Member

paulb777 commented Jul 4, 2018

@KumMadhu There is no version 1.7.2. Check the CocoaPods version with pod --version

@tanpengsccd
Copy link

maybe it's xcode 10 beta .
pod lib lint
get the error

- ERROR | [iOS] unknown: Encountered an unknown error (Malformed version number string ) during validation.

I installed Xcode 9.4.1 and 10beta ,then I uninstall 10beta. Pass it

@kukushi
Copy link

kukushi commented Jul 8, 2018

I had the same problem with CocoaPods 1.5.3 when pushing https://github.com/kukushi/SideMenu.
BTW, I have Xcode 9.4.1 and Xcode 10 installed.

@tanpengsccd
Copy link

tanpengsccd commented Jul 8, 2018 via email

@kukushi
Copy link

kukushi commented Jul 8, 2018

@tanpengsccd
It works!
Temporarily put Xcode 10 into Trash solve this issue.

@StrongX
Copy link

StrongX commented Jul 16, 2018

gem 2.7.7 can not run cocoapods 1.3.x . 1.4.x
you should install rubygem in 2.7.6
please:
gem install rubygems-update -v 2.7.6
and
update_rubygems

then
pod install or pod update

@KexingWestRoad
Copy link

CocoaPods : 1.2.0
Ruby : ruby 2.3.7p456 (2018-03-28 revision 63024) [x86_64-darwin18]
RubyGems : 2.7.7
Host : Mac OS X 10.14 (18A326h)
Xcode : 10.0 (10L201y)
Git : git version 2.17.1 (Apple Git-111)
Ruby lib dir : /Users/rocklobster/.rvm/rubies/ruby-2.3.7/lib

and ArgumentError - Malformed version number string

@KexingWestRoad
Copy link

i fixed it.
@StrongX

gem 2.7.7 can not run cocoapods 1.3.x . 1.4.x
you should install rubygem in 2.7.6
please:
gem install rubygems-update -v 2.7.6
and
update_rubygems

then
pod install or pod update

Successed

@BaihaoTian
Copy link

if your rubyGems version is 2.7.7 or higher you just can do like this
gem update --system 2.7.6
my problem has resolved by doing this.

@sp55
Copy link

sp55 commented Aug 8, 2018

Error

ArgumentError - Malformed version number string 
/Users/admin/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/version.rb:209:in `initialize'
/Users/admin/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/version.rb:200:in `new'
/Users/admin/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/version.rb:200:in `new'
/Users/admin/.rvm/gems/ruby-2.4.1/gems/cocoapods-1.2.1/lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb:116:in `embedded_content_settings'
/Users/admin/.rvm/gems/ruby-2.4.1/gems/cocoapods-1.2.1/lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb:64:in `generate'
/Users/admin/.rvm/gems/ruby-2.4.1/gems/cocoapods-1.2.1/lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb:39:in `save_as'
/Users/admin/.rvm/gems/ruby-2.4.1/gems/cocoapods-1.2.1/lib/cocoapods/installer/xcode/pods_project_generator/aggregate_target_installer.rb:87:in `block in create_xcconfig_file'
/Users/admin/.rvm/gems/ruby-2.4.1/gems/cocoapods-1.2.1/lib/cocoapods/installer/xcode/pods_project_generator/aggregate_target_installer.rb:84:in `each'
/Users/admin/.rvm/gems/ruby-2.4.1/gems/cocoapods-1.2.1/lib/cocoapods/installer/xcode/pods_project_generator/aggregate_target_installer.rb:84:in `create_xcconfig_file'
/Users/admin/.rvm/gems/ruby-2.4.1/gems/cocoapods-1.2.1/lib/cocoapods/installer/xcode/pods_project_generator/aggregate_target_installer.rb:18:in `block in install!'
/Users/admin/.rvm/gems/ruby-2.4.1/gems/cocoapods-1.2.1/lib/cocoapods/user_interface.rb:142:in `message'
/Users/admin/.rvm/gems/ruby-2.4.1/gems/cocoapods-1.2.1/lib/cocoapods/installer/xcode/pods_project_generator/aggregate_target_installer.rb:14:in `install!'
/Users/admin/.rvm/gems/ruby-2.4.1/gems/cocoapods-1.2.1/lib/cocoapods/installer/xcode/pods_project_generator.rb:160:in `block (2 levels) in install_libraries'
/Users/admin/.rvm/gems/ruby-2.4.1/gems/cocoapods-1.2.1/lib/cocoapods/installer/xcode/pods_project_generator.rb:158:in `each'
/Users/admin/.rvm/gems/ruby-2.4.1/gems/cocoapods-1.2.1/lib/cocoapods/installer/xcode/pods_project_generator.rb:158:in `block in install_libraries'
/Users/admin/.rvm/gems/ruby-2.4.1/gems/cocoapods-1.2.1/lib/cocoapods/user_interface.rb:142:in `message'
/Users/admin/.rvm/gems/ruby-2.4.1/gems/cocoapods-1.2.1/lib/cocoapods/installer/xcode/pods_project_generator.rb:152:in `install_libraries'
/Users/admin/.rvm/gems/ruby-2.4.1/gems/cocoapods-1.2.1/lib/cocoapods/installer/xcode/pods_project_generator.rb:64:in `generate!'
/Users/admin/.rvm/gems/ruby-2.4.1/gems/cocoapods-1.2.1/lib/cocoapods/installer.rb:179:in `block in generate_pods_project'
/Users/admin/.rvm/gems/ruby-2.4.1/gems/cocoapods-1.2.1/lib/cocoapods/user_interface.rb:64:in `section'
/Users/admin/.rvm/gems/ruby-2.4.1/gems/cocoapods-1.2.1/lib/cocoapods/installer.rb:178:in `generate_pods_project'
/Users/admin/.rvm/gems/ruby-2.4.1/gems/cocoapods-1.2.1/lib/cocoapods/installer.rb:115:in `install!'
/Users/admin/.rvm/gems/ruby-2.4.1/gems/cocoapods-1.2.1/lib/cocoapods/command/update.rb:81:in `run'
/Users/admin/.rvm/gems/ruby-2.4.1/gems/claide-1.0.1/lib/claide/command.rb:334:in `run'
/Users/admin/.rvm/gems/ruby-2.4.1/gems/cocoapods-1.2.1/lib/cocoapods/command.rb:52:in `run'
/Users/admin/.rvm/gems/ruby-2.4.1/gems/cocoapods-1.2.1/bin/pod:55:in `<top (required)>'
/Users/admin/.rvm/gems/ruby-2.4.1/bin/pod:23:in `load'
/Users/admin/.rvm/gems/ruby-2.4.1/bin/pod:23:in `<main>'
/Users/admin/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `eval'
/Users/admin/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `<main>'

――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

[!] Oh no, an error occurred.

Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=Malformed+version+number+string+&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...

and 34 more at:
https://github.com/cocoapods/cocoapods/search?q=Malformed%20version%20number%20string%20&type=Issues&utf8=✓

how to fix , who know ? thx
怎么解决 有大佬碰到过吗

楼上大佬的方法解决了 我的gem 就是2.7.7的改成2.7.6的就好了
if your rubyGems version is 2.7.7 or higher you just can do like this
//命令行
gem update --system 2.7.6
my problem has resolved by doing this.

@gongzelong0718
Copy link

admindeMacBook-Pro:mall-ios gongzelong$ gem --debug update --system 2.7.6
NOTE:  Debugging mode prints all exceptions even when rescued
Exception `LoadError' at /Users/gongzelong/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/resolv.rb:168 - LoadError
Exception `Errno::EEXIST' at /Users/gongzelong/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/fileutils.rb:252 - File exists @ dir_s_mkdir - /Users/gongzelong/.gem/specs/api.rubygems.org%443
Exception `Errno::ENOENT' at /Users/gongzelong/.rvm/rubies/ruby-2.2.0/lib/ruby/site_ruby/2.2.0/rubygems/remote_fetcher.rb:325 - No such file or directory @ rb_file_s_stat - /Users/gongzelong/.gem/specs/api.rubygems.org%443/specs.4.8
Exception `OpenSSL::SSL::SSLErrorWaitReadable' at /Users/gongzelong/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/openssl/buffering.rb:182 - read would block
Exception `OpenSSL::SSL::SSLErrorWaitReadable' at /Users/gongzelong/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/openssl/buffering.rb:182 - read would block
Exception `OpenSSL::SSL::SSLErrorWaitReadable' at /Users/gongzelong/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/openssl/buffering.rb:182 - read would block
Exception `OpenSSL::SSL::SSLErrorWaitReadable' at /Users/gongzelong/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/openssl/buffering.rb:182 - read would block
^CException `Interrupt' at /Users/gongzelong/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/net/protocol.rb:155 - 
ERROR:  Interrupted
### Command



/Users/gongzelong/.rvm/gems/ruby-2.2.0/bin/pod install




### Report



* What did you do?



* What did you expect to happen?



* What happened instead?





### Stack



CocoaPods : 1.2.1

    Ruby : ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin17]

RubyGems : 2.7.7

    Host : Mac OS X 10.13.6 (17G65)

   Xcode : 9.4.1 (9F2000)

     Git : git version 2.15.2 (Apple Git-101.1)

Ruby lib dir : /Users/gongzelong/.rvm/rubies/ruby-2.2.0/lib

admindeMacBook-Pro:mall-ios gongzelong$ gem install rubygems-update -v 2.7.6
admindeMacBook-Pro:mall-ios gongzelong$ update_rubygems


@LDKFighter thanks, it works for me.

Michelasso pushed a commit to Michelasso/WatchdogInspector that referenced this issue Aug 11, 2018

Unverified

This user has not yet uploaded their public signing key.
This should be a workaround for Cocoapod error "ArgumentError - Malformed version number string", caused by RubyGems v2.7.7 as described in CocoaPods/CocoaPods#7765, apparently fixed in Cocoapod 1.5.3 (CocoaPods/CocoaPods#7769)
@Hanten
Copy link

Hanten commented Aug 27, 2018

Maybe you can update ruby to 2.4+

@wjyx1lalala
Copy link

i had fixed by: sudo gem update --system 2.7.6

@TarunNarula
Copy link

I am stuck on it from so many hours, tried everything:

Taruns-MacBook-Air:ios tarunnarula$ pod install
Analyzing dependencies

――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

Command

/usr/local/bin/pod install

Report

  • What did you do?

  • What did you expect to happen?

  • What happened instead?

Stack

   CocoaPods : 1.5.3
        Ruby : ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin17]
    RubyGems : 2.7.6
        Host : Mac OS X 10.13.6 (17G65)
       Xcode : 10.0 (10A255)
         Git : git version 2.15.0
Ruby lib dir : /usr/local/Cellar/ruby/2.5.1/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ 82a0a895a73c99fe6e28cfa4458205ba828706f3

Plugins

cocoapods-deintegrate : 1.0.2
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.0.0
cocoapods-trunk       : 1.3.1
cocoapods-try         : 1.1.0

Podfile

# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'

target 'kosara' do
  # React Native third party dependencies podspecs for Kosara

  # Required by RNFirebase
  pod 'Firebase/Core'
  #pod 'Firebase/Firestore'
  pod 'Firebase/Messaging'

  pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'

end

Error

ArgumentError - Malformed version number string ~> 5.0.1
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/version.rb:54:in `initialize'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/vendor/version.rb:199:in `new'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/vendor/version.rb:199:in `new'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/specification.rb:154:in `name_and_version_from_string'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/lockfile.rb:214:in `block in generate_pod_names_and_versions'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/lockfile.rb:212:in `each'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/lockfile.rb:212:in `generate_pod_names_and_versions'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/lockfile.rb:240:in `pod_versions'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/lockfile.rb:87:in `version'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/lockfile.rb:168:in `block in dependencies_to_lock_pod_named'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/lockfile.rb:167:in `map'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/lockfile.rb:167:in `dependencies_to_lock_pod_named'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/lockfile.rb:296:in `block in detect_changes_with_podfile'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/lockfile.rb:294:in `each'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/lockfile.rb:294:in `detect_changes_with_podfile'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/installer/analyzer.rb:233:in `block in generate_podfile_state'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/user_interface.rb:64:in `section'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/installer/analyzer.rb:232:in `generate_podfile_state'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/installer/analyzer.rb:82:in `analyze'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:243:in `analyze'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:154:in `block in resolve_dependencies'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/user_interface.rb:64:in `section'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:153:in `resolve_dependencies'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:116:in `install!'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/command/install.rb:41:in `run'
/usr/local/lib/ruby/gems/2.5.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:52:in `run'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'

――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

[!] Oh no, an error occurred.

Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=Malformed+version+number+string+~%3E+5.0.1&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...

Support will be appreciated

@iPermanent
Copy link

I am stuck on it from so many hours, tried everything:

Taruns-MacBook-Air:ios tarunnarula$ pod install
Analyzing dependencies

――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

Command

/usr/local/bin/pod install

Report

  • What did you do?
  • What did you expect to happen?
  • What happened instead?

Stack

   CocoaPods : 1.5.3
        Ruby : ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin17]
    RubyGems : 2.7.6
        Host : Mac OS X 10.13.6 (17G65)
       Xcode : 10.0 (10A255)
         Git : git version 2.15.0
Ruby lib dir : /usr/local/Cellar/ruby/2.5.1/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ 82a0a895a73c99fe6e28cfa4458205ba828706f3

Plugins

cocoapods-deintegrate : 1.0.2
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.0.0
cocoapods-trunk       : 1.3.1
cocoapods-try         : 1.1.0

Podfile

# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'

target 'kosara' do
  # React Native third party dependencies podspecs for Kosara

  # Required by RNFirebase
  pod 'Firebase/Core'
  #pod 'Firebase/Firestore'
  pod 'Firebase/Messaging'

  pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'

end

Error

ArgumentError - Malformed version number string ~> 5.0.1
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/version.rb:54:in `initialize'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/vendor/version.rb:199:in `new'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/vendor/version.rb:199:in `new'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/specification.rb:154:in `name_and_version_from_string'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/lockfile.rb:214:in `block in generate_pod_names_and_versions'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/lockfile.rb:212:in `each'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/lockfile.rb:212:in `generate_pod_names_and_versions'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/lockfile.rb:240:in `pod_versions'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/lockfile.rb:87:in `version'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/lockfile.rb:168:in `block in dependencies_to_lock_pod_named'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/lockfile.rb:167:in `map'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/lockfile.rb:167:in `dependencies_to_lock_pod_named'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/lockfile.rb:296:in `block in detect_changes_with_podfile'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/lockfile.rb:294:in `each'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/lockfile.rb:294:in `detect_changes_with_podfile'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/installer/analyzer.rb:233:in `block in generate_podfile_state'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/user_interface.rb:64:in `section'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/installer/analyzer.rb:232:in `generate_podfile_state'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/installer/analyzer.rb:82:in `analyze'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:243:in `analyze'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:154:in `block in resolve_dependencies'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/user_interface.rb:64:in `section'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:153:in `resolve_dependencies'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:116:in `install!'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/command/install.rb:41:in `run'
/usr/local/lib/ruby/gems/2.5.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:52:in `run'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'

――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

[!] Oh no, an error occurred.

Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=Malformed+version+number+string+~%3E+5.0.1&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...

Support will be appreciated

maybe you have installed the bundler?
you can run : gem list --local
and then : gem uninstall cocoapods-xxx to install all things that have cocoapods prefix
and last sudo gem install cocoapods

@TarunNarula
Copy link

TarunNarula commented Sep 20, 2018

@iPermanent Thank you very much for replying, I have done the same suggested by you, but still facing the same error:

Taruns-MacBook-Air:ios tarunnarula$ pod install
Analyzing dependencies

――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

Command

/usr/local/bin/pod install

Report

  • What did you do?

  • What did you expect to happen?

  • What happened instead?

Stack

   CocoaPods : 1.5.3
        Ruby : ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin17]
    RubyGems : 2.7.6
        Host : Mac OS X 10.13.6 (17G65)
       Xcode : 10.0 (10A255)
         Git : git version 2.15.0
Ruby lib dir : /usr/local/Cellar/ruby/2.5.1/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ 82a0a895a73c99fe6e28cfa4458205ba828706f3

Plugins

cocoapods-deintegrate : 1.0.2
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.0.0
cocoapods-trunk       : 1.3.1
cocoapods-try         : 1.1.0

Podfile

# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'

target 'kosara' do
  # React Native third party dependencies podspecs for Kosara

  # Required by RNFirebase
  pod 'Firebase/Core'
  #pod 'Firebase/Firestore'
  pod 'Firebase/Messaging'

  pod 'yoga', :path =>  '../node_modules/ReactCommon/yoga'

  # React Native
  pod 'React', :path => '../node_modules', :subspecs => [
    'Core',
    'CxxBridge',
    'RCTText',
    'RCTNetwork',
    'RCTWebSocket',
    'RCTImage',
    'RCTNetwork',
    'DevSupport'
  ]


  pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'

end

Error

ArgumentError - Malformed version number string ~> 5.0.1
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/version.rb:54:in `initialize'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/vendor/version.rb:199:in `new'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/vendor/version.rb:199:in `new'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/specification.rb:154:in `name_and_version_from_string'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/lockfile.rb:214:in `block in generate_pod_names_and_versions'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/lockfile.rb:212:in `each'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/lockfile.rb:212:in `generate_pod_names_and_versions'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/lockfile.rb:240:in `pod_versions'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/lockfile.rb:87:in `version'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/lockfile.rb:168:in `block in dependencies_to_lock_pod_named'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/lockfile.rb:167:in `map'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/lockfile.rb:167:in `dependencies_to_lock_pod_named'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/lockfile.rb:296:in `block in detect_changes_with_podfile'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/lockfile.rb:294:in `each'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/lockfile.rb:294:in `detect_changes_with_podfile'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/installer/analyzer.rb:233:in `block in generate_podfile_state'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/user_interface.rb:64:in `section'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/installer/analyzer.rb:232:in `generate_podfile_state'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/installer/analyzer.rb:82:in `analyze'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:243:in `analyze'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:154:in `block in resolve_dependencies'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/user_interface.rb:64:in `section'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:153:in `resolve_dependencies'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:116:in `install!'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/command/install.rb:41:in `run'
/usr/local/lib/ruby/gems/2.5.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:52:in `run'
/usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'

――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

[!] Oh no, an error occurred.

Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=Malformed+version+number+string+~%3E+5.0.1&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...

and 1 more at:
https://github.com/cocoapods/cocoapods/search?q=Malformed%20version%20number%20string%20~%3E%205.0.1&type=Issues&utf8=✓
Taruns-MacBook-Air:ios tarunnarula$

@ConfusedVorlon
Copy link

just noting that my bug report (malformed version number string) was closed as a duplicate of this.
#8240

fwiw - it seems like a fairly simple bug to me if cocoapods fails on gem 2.7.7 without saying why.

just checking the gem number and saying 'we can't run here' would have saved a bunch of time

@luckysunle
Copy link

if you account was managered,fix it with gem update --system 2.3.0 -n /usr/local/bin

@SamUncle
Copy link

podfile add

inhibit_all_warnings!
source 'https://github.com/CocoaPods/Specs.git' # 官方库

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
d1:easy An easy ticket that is a good start for first-time contributors s2:confirmed Issues that have been confirmed by a CocoaPods contributor t2:defect These are known bugs. The issue should also contain steps to reproduce. PRs welcome!
Projects
None yet
Development

No branches or pull requests