Installing Firebase (Xcode iOS) in App with multiple Targets

177 views
Skip to first unread message

in...@gpasoft.com

unread,
May 11, 2020, 8:59:06 AM5/11/20
to Firebase Google Group
Hi,

I'm trying to integrate Firebase (for Dynamic Links) in my current Xcode iOS project but I have problems with errors in the build  (Following this documentation: https://firebase.google.com/docs/dynamic-links/ios/receive).

My Podfile looks like this:

# Uncomment the next line...
# platform :ios, '9.0'


target
'AppName1' do
   
# Comment the next line if you don't want to use dynamic frameworks

    use_frameworks
!


   
# Pods for AppName1
    pod
'Firebase/Analytics'
    pod
'Firebase/DynamicLinks'
end


target
'NotificationServiceExtension' do
   
# Comment the next line if you don't want to use dynamic frameworks

    use_frameworks
!


   
# Pods for NotificationServiceExtension
    pod
'Firebase/Analytics'
    pod
'Firebase/DynamicLinks'end


(... With more targets ...)

TEST1. When I try to complile the App target, this is the errors I am getting:

thumbnail_imagen1.png


TEST2. If I remove the "pod 'Firebase/ ..." lines from the NotificationServiceExtensions I get these errors:

thumbnail_imagen.png


TEST1. If I comment the "use_frameworks!" with #, I get the first errors again.

TEST2. If I comment everything inside the targets NotificationServiceExtensions I get:


Library not found for -lFirebaseCore

For every test I'm doing "pod deintegrate" and "pod install" again, open the PROJECT-NAME.xcworkspace, clean and build.

I don't know what else to try or what I'm doing wrong... (the integration with android was super easy...)

Thanks.
Reply all
Reply to author
Forward
0 new messages