質問編集履歴

3

書式の改善

2022/03/31 05:47

投稿

runrun
runrun

スコア36

test CHANGED
@@ -1 +1 @@
1
- CocoaPodsがインストールできない
1
+ CocoaPodsがインストールできない(エラー:can't find gem cocoapods)
test CHANGED
File without changes

2

進展した部分の追加

2022/03/31 00:00

投稿

runrun
runrun

スコア36

test CHANGED
File without changes
test CHANGED
@@ -32,6 +32,19 @@
32
32
  /Library/Ruby/Site/2.6.0/rubygems.rb:265:in `find_spec_for_exe': can't find gem cocoapods (>= 0.a) with executable pod (Gem::GemNotFoundException)
33
33
  ```
34
34
 
35
+ ---
36
+ ##### 追記
37
+ Macの情報をもとに「rbenvでrubyを管理する」方法で、gemとrubyのパスがシステムではなくrbenvのパスを指すようにしました。
38
+ ```
39
+ % where gem
40
+ /Users/hikari/.rbenv/shims/gem
41
+ /usr/bin/gem
42
+ % where pod
43
+ /Users/hikari/.rbenv/shims/pod
44
+ /usr/local/bin/pod
45
+ ```
46
+ sudo gem install cocoapodsは実行できたのですが、そこからpodがinstallできません。
47
+ 解決法ありますでしょうか?
35
48
  ### 類似の問題のため参考にしたterateilのサイト
36
49
 
37
50
  https://teratail.com/questions/254718

1

mac情報の追加

2022/03/30 23:39

投稿

runrun
runrun

スコア36

test CHANGED
File without changes
test CHANGED
@@ -37,4 +37,7 @@
37
37
  https://teratail.com/questions/254718
38
38
  https://teratail.com/questions/209137
39
39
 
40
+ ### Macについて
41
+ MacBook Pro (16-inch, 2019)
42
+ 2.6 GHz 6コアIntel Core i7
40
43