There are two ways to add the Firebase SDK to your iOS project . You can use CocoaPods, in which case it is very important to make sure that your dependency in pod is at your target. For example.
use_frameworks! platform :ios, '7.0' pod 'Firebase/Analytics' target 'Target1' do end target 'Target2' do end
CocoaPods has many different ways to set goals, so your subfile might look different. The important thing is that the target you specified is related to the pod - in this case I specified the Google Analytics module so that it is available for all purposes, but if I placed it only in the Target1 do...end block, then it would not be available in Target2.
If you use the framework integration method, make sure that the libraries are listed in the “Linking Binary Files to Libraries” section of the Build Phases tab. This should happen automatically if you drag them into the Frameworks group in Xcode.
Finally, if this does not work, Xcode may cache something bad. Try to open the "Product" menu, hold down the "Advanced" key and click "Empty folder."
Ian barber
source share