Posted 甯堝厔鐨勭纰庡康
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了相关的知识,希望对你有一定的参考价值。
鍦ㄥ崌绾ac绯荤粺鍒癿acOS High Sierra锛?0.13.4锛夌殑鏃跺€欙紝鍑虹幇鍗囩骇澶辫触瀵艰嚧寮€涓嶄簡鏈猴紝鎵€鏈夌殑鏁版嵁鍏ㄦ病浜嗐€?馃尪馃悢馃崕馃拪 涔嬪墠鐨勭郴缁熺幆澧冮兘瑕佸叏閮ㄩ噸鏂伴厤缃紝鍦ㄩ厤缃甤ocoapods鐨勬椂鍊欓亣鍒颁簡涓€浜涢棶棰橈紝鐗规璁板綍銆?/p>
瀹夎cocoapods渚濊禆鐨勭幆澧?/h2>
杩欐缃戜笂鏈夊緢澶氭暀绋嬶紝灏变笉鍐嶈禈杩般€?鐒惰€屽畨瑁呭畬鍚庯紝鍦ㄦ墽琛?pod install
鎴?pod update
鏃讹紝灏变細鍑虹幇濡備笅閿欒锛?/p>
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.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/bin/pod:23:in `load'
/usr/bin/pod:23:in `<main>'
锛堜竴鑴告嚨閫?..锛?/p>
Google鎼滀簡涓€鍫嗕篃娌℃壘鍒拌В鍐冲姙娉曪紝鍚庢潵鍦–ocoapods鐨刬ssues閲屾壘鍒颁竴涓В鍐虫柟妗?
jcharr1: I came across this issue today, too, when trying to run "pod install." What version of Rubygems are you running? For me, I had updated with "gem update --system" which brought me up to v2.7.7. Downgrading to 2.7.6 with "gem update --system 2.7.6" fixed this for me.
杩欎綅 jcharr1
璇磄em鐗堟湰澶珮浜嗗鑷寸殑锛屼粬闄嶇骇鍒?.7.6灏卞彲浠ヤ簡銆備簬鏄垜涔熷皾璇曠潃闄嶇骇浜嗕竴涓嬶紝鏋滅劧瑙e喅浜嗭紒涓嶈繃鍏朵腑缂樼敱涓嶅緱鑰岀煡锛屾湁鏃堕棿鍐嶇爺绌朵竴涓嬨€?/p>
Pod install
鐜板湪鍙互姝e父 pod install
鍜?pod update
浜嗗悧锛熷苟涓嶃€?褰撴垜鎸変笅鍥炶溅閿箣鍚庯紝鍙堝嚭鐜颁簡涓€涓皬闂锛?/p>
Analyzing dependencies
Pre-downloading: `XXXX` from `http://xxx.com/xxx/xxx.git`, tag `xxx_6.9.5`
Username for 'http://xxx.com': aaa
Password for 'http://aaa@xxx.com':
[url "git@github.com:"]
insteadOf = https://github.com/
[url "git@github.com:"]
pushInsteadOf = "git://github.com/"
[url "git@github.com:"]
pushInsteadOf = "https://github.com/"
鐒跺悗 pod install
锛屽彲浠ヤ簡鍚楋紵涓嶏紒瀹冨張鍑洪敊浜嗐€?/p>
[!] Error installing MTCameraAR
[!] Failed to download 'MTCameraAR'
锛堜竴鑴告嚨閫糰gain...锛?/p>
鍚庢潵灏濊瘯鍗歌浇閲嶈cocoapods锛岄兘涓嶈銆傛褰撴棤鍙浣曚箣闄咃紝绐佺劧鎯宠捣鏉ワ紝pod鏈?--verbose
杩欎釜鍙傛暟鍟婏紝璇翠笉瀹氫細鏈夊府鍔┿€?浜庢槸 pod install--verbose
鍏抽敭鐨勯敊璇氨鍑虹幇浜嗭紝 git-lfs:commandnotfound
鐢变簬杩欎釜搴撶殑鏂囦欢閮藉緢澶э紝娌℃湁浣跨敤git-lfs鐨勮瘽浼氳秴鏃讹紝鏃犳硶鎴愬姛鎷夊彇銆傛墍浠ュ彧瑕佸畨瑁単it-lfs灏卞ソ浜嗐€?/p>
bingo锛侀棶棰橀兘瑙e喅浜嗐€?/p>
锛堥鍥炬潵鑷狦oogle锛?/span>
以上是关于的主要内容,如果未能解决你的问题,请参考以下文章