没有这样的模块PushNotifications(Swift 4 + Xcode 9.0)Firebase

问题描述 投票:0回答:1

使用Xcode 9,Swift 4无法在真正的Iphone 6上工作

两个问题:

  1. 重新定义模块“Firebase”
  2. 没有这样的模块'UserNotifications'

但如果我使用模拟器一切都很好!

firebase push-notification
1个回答
0
投票

安装firebase pod并导入以下模块

import Firebase
import FirebaseMessaging
import UserNotifications
© www.soinside.com 2019 - 2024. All rights reserved.