ArgumentError - Malformed version number string報錯

ArgumentError - Malformed version number string。簡單翻譯就是參數(shù)錯誤---畸形的版本字符串拭抬。

我的版本信息是:

?CocoaPods : 1.4.0

? ? ? ? Ruby : ruby 2.3.7p456 (2018-03-28 revision 63024) [x86_64-darwin17]

? ? RubyGems : 2.7.7

? ? ? ? Host : Mac OS X 10.13.6 (17G65)

?? ? ? Xcode : 10.0 (10A255)

?? ? ? ? Git : git version 2.17.1 (Apple Git-112)

Ruby lib dir : /Users/****/.rvm/rubies/ruby-2.3.7/lib

Repositories : master - https://github.com/CocoaPods/Specs.git @ 6cb0bb622cb67047a18a50c0efa6a21d2778b3ab

然后搜索ArgumentError - Malformed version number string双霍,就發(fā)現(xiàn)了下邊這個網(wǎng)友的回答:

https://xiaozhuanlan.com/topic/5483906721

我的問題和他一模一樣:

解決方案

遇到問題一定要仔細(xì)查看報錯信息垛耳,來排查。不要像無頭蒼蠅一樣亂撞戈次,那樣根本解決不了問題。這次我要是能一開始就只搜索版本信息應(yīng)該早就解決問題了筒扒。

我可以直接和能夠正常運(yùn)行的電腦進(jìn)行版本比較怯邪,就可以很好解決這個版本問題。

我的報錯信息:

### Error

```

ArgumentError - Malformed version number string?

/Users/****/.rvm/rubies/ruby-2.3.7/lib/ruby/site_ruby/2.3.0/rubygems/version.rb:209:in `initialize'

/Users/****/.rvm/rubies/ruby-2.3.7/lib/ruby/site_ruby/2.3.0/rubygems/version.rb:200:in `new'

/Users/****/.rvm/rubies/ruby-2.3.7/lib/ruby/site_ruby/2.3.0/rubygems/version.rb:200:in `new'

/Users/****/.rvm/gems/ruby-2.3.7@global/gems/cocoapods-1.4.0/lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb:119:in `embedded_content_settings'

/Users/****/.rvm/gems/ruby-2.3.7@global/gems/cocoapods-1.4.0/lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb:64:in `generate'

/Users/****/.rvm/gems/ruby-2.3.7@global/gems/cocoapods-1.4.0/lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb:39:in `save_as'

/Users/****/.rvm/gems/ruby-2.3.7@global/gems/cocoapods-1.4.0/lib/cocoapods/installer/xcode/pods_project_generator/target_installer.rb:114:in `update_changed_file'

/Users/****/.rvm/gems/ruby-2.3.7@global/gems/cocoapods-1.4.0/lib/cocoapods/installer/xcode/pods_project_generator/aggregate_target_installer.rb:87:in `block in create_xcconfig_file'

/Users/****/.rvm/gems/ruby-2.3.7@global/gems/cocoapods-1.4.0/lib/cocoapods/installer/xcode/pods_project_generator/aggregate_target_installer.rb:84:in `each'

/Users/****/.rvm/gems/ruby-2.3.7@global/gems/cocoapods-1.4.0/lib/cocoapods/installer/xcode/pods_project_generator/aggregate_target_installer.rb:84:in `create_xcconfig_file'

/Users/****/.rvm/gems/ruby-2.3.7@global/gems/cocoapods-1.4.0/lib/cocoapods/installer/xcode/pods_project_generator/aggregate_target_installer.rb:18:in `block in install!'

/Users/****/.rvm/gems/ruby-2.3.7@global/gems/cocoapods-1.4.0/lib/cocoapods/user_interface.rb:142:in `message'

/Users/****/.rvm/gems/ruby-2.3.7@global/gems/cocoapods-1.4.0/lib/cocoapods/installer/xcode/pods_project_generator/aggregate_target_installer.rb:14:in `install!'

/Users/****/.rvm/gems/ruby-2.3.7@global/gems/cocoapods-1.4.0/lib/cocoapods/installer/xcode/pods_project_generator.rb:175:in `block (2 levels) in install_libraries'

/Users/****/.rvm/gems/ruby-2.3.7@global/gems/cocoapods-1.4.0/lib/cocoapods/installer/xcode/pods_project_generator.rb:173:in `each'

/Users/****/.rvm/gems/ruby-2.3.7@global/gems/cocoapods-1.4.0/lib/cocoapods/installer/xcode/pods_project_generator.rb:173:in `block in install_libraries'

/Users/****/.rvm/gems/ruby-2.3.7@global/gems/cocoapods-1.4.0/lib/cocoapods/user_interface.rb:142:in `message'

/Users/****/.rvm/gems/ruby-2.3.7@global/gems/cocoapods-1.4.0/lib/cocoapods/installer/xcode/pods_project_generator.rb:167:in `install_libraries'

/Users/****/.rvm/gems/ruby-2.3.7@global/gems/cocoapods-1.4.0/lib/cocoapods/installer/xcode/pods_project_generator.rb:65:in `generate!'

/Users/****/.rvm/gems/ruby-2.3.7@global/gems/cocoapods-1.4.0/lib/cocoapods/installer.rb:184:in `block in generate_pods_project'

/Users/****/.rvm/gems/ruby-2.3.7@global/gems/cocoapods-1.4.0/lib/cocoapods/user_interface.rb:64:in `section'

/Users/****/.rvm/gems/ruby-2.3.7@global/gems/cocoapods-1.4.0/lib/cocoapods/installer.rb:183:in `generate_pods_project'

/Users/****/.rvm/gems/ruby-2.3.7@global/gems/cocoapods-1.4.0/lib/cocoapods/installer.rb:119:in `install!'

/Users/****/.rvm/gems/ruby-2.3.7@global/gems/cocoapods-1.4.0/lib/cocoapods/command/install.rb:41:in `run'

/Users/****/.rvm/gems/ruby-2.3.7@global/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'

/Users/****/.rvm/gems/ruby-2.3.7@global/gems/cocoapods-1.4.0/lib/cocoapods/command.rb:52:in `run'

/Users/****/.rvm/gems/ruby-2.3.7@global/gems/cocoapods-1.4.0/bin/pod:55:in `<top (required)>'

/Users/****/.rvm/rubies/ruby-2.3.7/bin/pod:23:in `load'

/Users/****/.rvm/rubies/ruby-2.3.7/bin/pod:23:in `<main>'

/Users/****/.rvm/gems/ruby-2.3.7@global/bin/ruby_executable_hooks:24:in `eval'

/Users/****/.rvm/gems/ruby-2.3.7@global/bin/ruby_executable_hooks:24: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...

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

?? https://github.com/CocoaPods/CocoaPods/issues/8240 [open] [9 comments]

?? an hour ago

?- Error -- Malformed version number string

?? https://github.com/CocoaPods/CocoaPods/issues/8106 [closed] [0 comments]

?? 6 weeks ago

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

?? https://github.com/CocoaPods/CocoaPods/issues/8128 [closed] [4 comments]

?? 17 hours ago

and 37 more at:

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

[!] Automatically assigning platform `ios` with version `9.0` on target `VendorApp` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

[!] 'Bugly' uses the unencrypted http protocol to transfer the Pod. Please be sure you're in a safe network with only trusted hosts in there. Please reach out to the library author to notify them of this security issue.

[!] 'UMCAnalytics' uses the unencrypted http protocol to transfer the Pod. Please be sure you're in a safe network with only trusted hosts in there. Please reach out to the library author to notify them of this security issue.

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末花墩,一起剝皮案震驚了整個濱河市悬秉,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌冰蘑,老刑警劉巖和泌,帶你破解...
    沈念sama閱讀 217,542評論 6 504
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異祠肥,居然都是意外死亡武氓,警方通過查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 92,822評論 3 394
  • 文/潘曉璐 我一進(jìn)店門仇箱,熙熙樓的掌柜王于貴愁眉苦臉地迎上來县恕,“玉大人,你說我怎么就攤上這事剂桥≈抑颍” “怎么了?”我有些...
    開封第一講書人閱讀 163,912評論 0 354
  • 文/不壞的土叔 我叫張陵渊额,是天一觀的道長况木。 經(jīng)常有香客問我,道長旬迹,這世上最難降的妖魔是什么火惊? 我笑而不...
    開封第一講書人閱讀 58,449評論 1 293
  • 正文 為了忘掉前任,我火速辦了婚禮奔垦,結(jié)果婚禮上屹耐,老公的妹妹穿的比我還像新娘。我一直安慰自己,他們只是感情好惶岭,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,500評論 6 392
  • 文/花漫 我一把揭開白布寿弱。 她就那樣靜靜地躺著,像睡著了一般按灶。 火紅的嫁衣襯著肌膚如雪症革。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 51,370評論 1 302
  • 那天鸯旁,我揣著相機(jī)與錄音噪矛,去河邊找鬼。 笑死铺罢,一個胖子當(dāng)著我的面吹牛艇挨,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播韭赘,決...
    沈念sama閱讀 40,193評論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼缩滨,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了泉瞻?” 一聲冷哼從身側(cè)響起脉漏,我...
    開封第一講書人閱讀 39,074評論 0 276
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎袖牙,沒想到半個月后鸠删,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 45,505評論 1 314
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡贼陶,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,722評論 3 335
  • 正文 我和宋清朗相戀三年刃泡,在試婚紗的時候發(fā)現(xiàn)自己被綠了。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片碉怔。...
    茶點(diǎn)故事閱讀 39,841評論 1 348
  • 序言:一個原本活蹦亂跳的男人離奇死亡烘贴,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出撮胧,到底是詐尸還是另有隱情桨踪,我是刑警寧澤,帶...
    沈念sama閱讀 35,569評論 5 345
  • 正文 年R本政府宣布芹啥,位于F島的核電站锻离,受9級特大地震影響,放射性物質(zhì)發(fā)生泄漏墓怀。R本人自食惡果不足惜汽纠,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,168評論 3 328
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望傀履。 院中可真熱鬧虱朵,春花似錦、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,783評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至服协,卻和暖如春绍昂,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背偿荷。 一陣腳步聲響...
    開封第一講書人閱讀 32,918評論 1 269
  • 我被黑心中介騙來泰國打工治专, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人遭顶。 一個月前我還...
    沈念sama閱讀 47,962評論 2 370
  • 正文 我出身青樓,卻偏偏與公主長得像泪蔫,于是被迫代替她去往敵國和親棒旗。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 44,781評論 2 354

推薦閱讀更多精彩內(nèi)容