Swift 2.3 在 pod 更新后使用未解析的标识符 Firebase 'FIR'
Swift 2.3 Use of unresolved identifier Firebase 'FIR' after pod update
在我的项目中使用 Xcode 8 和 Swift 2.3 并使用 Firebase
我刚刚更新了 pod 并收到了很多错误,但无法弄清楚为什么?
如果这个错误是因为更新,如何恢复到以前的版本?
Pod 文件
pod 'Firebase/Core'
pod 'Firebase/Messaging'
pod 'Firebase/AdMob'
刚刚更新了 pod 并低于
Analyzing dependencies
Downloading dependencies
Using Firebase (4.1.0)
Using FirebaseAnalytics (4.0.3)
Using FirebaseCore (4.0.5)
Using FirebaseInstanceID (2.0.1)
Using FirebaseMessaging (2.0.1)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 3 dependencies from the Podfile and 9 total pods installed.
我收到以下所有错误:
Use of undeclared type 'FIRMessagingDelegate'
Use of unresolved identifier 'FIRApp'
Use of unresolved identifier 'kFIRInstanceIDTokenRefreshNotification'
Use of unresolved identifier 'FIRMessaging'
Use of unresolved identifier 'FIRInstanceID'
Use of undeclared type 'FIRMessagingRemoteMessage'
根据 documentation, class names changes for Firebase 4.0.0 in Swift. So FIRMessagingDelegate
, is now MessagingDelegate
, and so on. See the migration guide here
在我的项目中使用 Xcode 8 和 Swift 2.3 并使用 Firebase 我刚刚更新了 pod 并收到了很多错误,但无法弄清楚为什么?
如果这个错误是因为更新,如何恢复到以前的版本?
Pod 文件
pod 'Firebase/Core'
pod 'Firebase/Messaging'
pod 'Firebase/AdMob'
刚刚更新了 pod 并低于
Analyzing dependencies
Downloading dependencies
Using Firebase (4.1.0)
Using FirebaseAnalytics (4.0.3)
Using FirebaseCore (4.0.5)
Using FirebaseInstanceID (2.0.1)
Using FirebaseMessaging (2.0.1)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 3 dependencies from the Podfile and 9 total pods installed.
我收到以下所有错误:
Use of undeclared type 'FIRMessagingDelegate'
Use of unresolved identifier 'FIRApp'
Use of unresolved identifier 'kFIRInstanceIDTokenRefreshNotification'
Use of unresolved identifier 'FIRMessaging'
Use of unresolved identifier 'FIRInstanceID'
Use of undeclared type 'FIRMessagingRemoteMessage'
根据 documentation, class names changes for Firebase 4.0.0 in Swift. So FIRMessagingDelegate
, is now MessagingDelegate
, and so on. See the migration guide here