Posted 甯堝厔鐨勭纰庡康

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了相关的知识,希望对你有一定的参考价值。

鍦ㄥ崌绾ac绯荤粺鍒癿acOS High Sierra锛?0.13.4锛夌殑鏃跺€欙紝鍑虹幇鍗囩骇澶辫触瀵艰嚧寮€涓嶄簡鏈猴紝鎵€鏈夌殑鏁版嵁鍏ㄦ病浜嗐€?馃尪馃悢馃崕馃拪 涔嬪墠鐨勭郴缁熺幆澧冮兘瑕佸叏閮ㄩ噸鏂伴厤缃紝鍦ㄩ厤缃甤ocoapods鐨勬椂鍊欓亣鍒颁簡涓€浜涢棶棰橈紝鐗规璁板綍銆?/p>

瀹夎cocoapods渚濊禆鐨勭幆澧?/h2>

杩欐缃戜笂鏈夊緢澶氭暀绋嬶紝灏变笉鍐嶈禈杩般€?鐒惰€屽畨瑁呭畬鍚庯紝鍦ㄦ墽琛?pod install 鎴?pod update 鏃讹紝灏变細鍑虹幇濡備笅閿欒锛?/p>

 
   
   
 
  1. ArgumentError - Malformed version number string

  2. /Library/Ruby/Site/2.3.0/rubygems/version.rb:209:in `initialize'

  3. /Library/Ruby/Site/2.3.0/rubygems/version.rb:200:in `new'

  4. /Library/Ruby/Site/2.3.0/rubygems/version.rb:200:in `new'

  5. /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb:123:in `embedded_content_settings'

  6. /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb:68:in `generate'

  7. /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb:39:in `save_as'

  8. ...

  9. /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/installer.rb:183:in `generate_pods_project'

  10. /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/installer.rb:119:in `install!'

  11. /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/command/install.rb:41:in `run'

  12. /Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'

  13. /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/lib/cocoapods/command.rb:52:in `run'

  14. /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.2/bin/pod:55:in `<top (required)>'

  15. /usr/bin/pod:23:in `load'

  16. /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>

 
   
   
 
  1. Analyzing dependencies

  2. Pre-downloading: `XXXX` from `http://xxx.com/xxx/xxx.git`, tag `xxx_6.9.5`

  3. Username for 'http://xxx.com': aaa

  4. Password for 'http://aaa@xxx.com':

 
   
   
 
  1. [url "git@github.com:"]

  2.  insteadOf = https://github.com/

  3. [url "git@github.com:"]

  4.  pushInsteadOf = "git://github.com/"

  5. [url "git@github.com:"]

  6.  pushInsteadOf = "https://github.com/"

鐒跺悗 pod install锛屽彲浠ヤ簡鍚楋紵涓嶏紒瀹冨張鍑洪敊浜嗐€?/p>

 
   
   
 
  1. [!] Error installing MTCameraAR

  2. [!] 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>

以上是关于的主要内容,如果未能解决你的问题,请参考以下文章

谷歌浏览器调试jsp 引入代码片段,如何调试代码片段中的js

片段和活动之间的核心区别是啥?哪些代码可以写成片段?

VSCode自定义代码片段——.vue文件的模板

VSCode自定义代码片段6——CSS选择器

VSCode自定义代码片段——声明函数

VSCode自定义代码片段8——声明函数