在苹果硅 M1 `expand_path' 上运行 cocoapods 失败:用户 .composer 不存在(ArgumentError)

时间:2021-06-10 15:00:50

标签: ios cocoapods

我在 apple m1 上运行 cocoapods 时遇到问题。 我正在使用 rosetta 2 安装 cocoapods。

Traceback (most recent call last):
11: from /usr/local/bin/pod:23:in `<main>'
10: from /usr/local/bin/pod:23:in `load'
 9: from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/bin/pod:55:in `<top (required)>'
 8: from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command.rb:49:in `run'
 7: from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command.rb:140:in `verify_minimum_git_version!'
 6: from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command.rb:126:in `git_version'
 5: from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/executable.rb:143:in `capture_command'
 4: from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/executable.rb:117:in `which!'
 3: from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/executable.rb:96:in `which'
 2: from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/executable.rb:96:in `each'
 1: from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/executable.rb:97:in `block in which'

/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/executable.rb:97:in `expand_path': 用户 .composer 不存在 (ArgumentError)

安妮解决方案?谢谢

0 个答案:

没有答案