LoginSignup
1

More than 3 years have passed since last update.

【Xcode】No such module と表示された時の対処

Posted at

結論

ターゲットを増やしたが、Podfileのターゲットを増やしていなかったため
Podfileのターゲットを増やし、再度 pod install で解消された

普段触らなすぎて、忘れていました。。。

環境

Xcode: 10.1
Swift: 4.2
pod: 1.7.1

手順

Podfileにターゲットを追加

platform :ios, '9.0'
use_frameworks!

def install_pods
 pod 'Firebase/Core'
 pod ....
end

target 'すでに存在してるターゲット名' do
 install_pods
end

# 新しいターゲットを追記し忘れていた
target '新しく追加したターゲット名' do
 install_pods
end

インストール実施

pod install

振り返り

こんなことで3時間ほど費やしてしまった コンチクショー!(振り返ってない)

参考に試したが自分の場合ダメだったこと

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1