在 AppDelegate.swift
中导入 Firebase 框架时,我总是收到以下警告:
import Firebase -> File 'AppDelegate.swift' is part of module 'Firebase'; ignoring import
didFinishLaunchingWithOptions:
中出现以下错误:
FIRApp.configure() -> Use of unresolved identifier 'FIRApp'
我使用 CocoaPods 导入了 Firebase 框架。
这是我的 Podfile:
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
target 'Firebase' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Firebase
pod 'Firebase'
pod 'Firebase/Messaging'
end
知道我做错了什么吗?
最佳答案
我认为问题可能是您将项目命名为 Firebase
关于iOS Firebase 导入警告和错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37372078/