iOS Firebase 导入警告和错误

标签 ios swift import firebase cocoapods

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/

相关文章:

ios - Segue 屏幕返回主屏幕后,在哪里放置代码来填充 UITextfield(标题字段)?

c++ - OSX C++ Xcode : Pasting long input into console gives upside down question marks

Java 类导入问题。导入 java.awt.geom.Rectangle2D.Float 不起作用

ios - iOS 中的默认属性

ios - UITabBar 的 TabBarItems

ios - 如何在 Swift 中仅在 View Controller 的一部分上实现滑入/滑出菜单?

ios - 错误域=NSURLErrorDomain 代码=-1000 "bad URL"

ios - 如何检查每两张翻转卡片的数组中按钮的当前标题是否在卡片匹配游戏中匹配

ios - 将与搜索字符串匹配的字符串的一部分加粗

php - 在 PHP : What difference does a leading backslash make? 中导入类和命名空间