How to fix Property has a previous declaration Firebase In-App Messaging iOS?

128 Views Asked by At

I would like to implement the Firebase In-App Messaging feature in my application. Documentation is available at https://firebase.google.com/docs/in-app-messaging/get-started?platform=ios

To implement that feature I installed a library in my project using the below pod.

pod 'FirebaseInAppMessaging'

After installation, I got Property has a previous declaration error.

error screenshot

I don't know how to fix this issue, If anyone has an idea please let me know.

2

There are 2 best solutions below

0
wanted On

Remove from Podfile and add by packages:

target -> file -> add Packages -> search url => https://github.com/firebase/firebase-ios-sdk.git -> add Package

enter image description here

1
Paul Beusterien On

FirebaseInAppMessaging is in beta and that needs to be acknowledged in the Podfile with something like:

pod 'FirebaseInAppMessaging', "> 10.12-beta"