同じエラーが発生しました
import Firebase
しかし、その後、私はポッドをメインターゲットセクションに追加するのではなく、PodfileのTestおよびTestUIターゲットにのみ追加していることに気付きました。
コマンドで
pod init
xcode swiftプロジェクトの場合、次のPodfileが生成されます
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'MyApp' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for MyApp
target 'MyAppTests' do
inherit! :search_paths
# Pods for testing
end
target 'MyAppUITests' do
inherit! :search_paths
# Pods for testing
end
end
したがって、適切なプレースホルダーにポッドを追加する必要があります。