Firebase Integration Inside the Frame with Cocoapods

I am trying to enable Firebase inside the target environment associated with the application. When I simply include Firebase in the target of the framework, it will not compile the application, and when I include Firebase in the application and in the framework, I see the following warnings.

objc[25463]: Class FIRAAppEnvironmentUtil is implemented in both /Users/User/Library/Developer/Xcode/DerivedData/TestApp-bldxbgfroizmdggroxupwpsxowvt/Build/Products/Debug-iphonesimulator/AppUIKit.framework/AppUIKit (0x109078e98) and /Users/User/Library/Developer/Xcode/DerivedData/TestApp-bldxbgfroizmdggroxupwpsxowvt/Build/Products/Debug-iphonesimulator/AppKit.framework/AppKit (0x108effdb8). One of the two will be used. Which one is undefined.

Below is my swap file

platform :ios, '9.0'

pod 'Firebase', '~> 3.6'
pod 'Firebase/RemoteConfig', '~> 3.6'

target 'AppKit' do
  use_frameworks!

  pod 'Alamofire', '~> 4.0'

  target 'AppKitTests' do
    inherit! :search_paths
    # Pods for testing
  end

end

target 'AppUIKit' do
  use_frameworks!
  # Pods for AppUIKit

  target 'AppUIKitTests' do
    inherit! :search_paths
    # Pods for testing
  end

end

target 'TestApp' do
  use_frameworks!

  # Pods for TestApp

  target 'TestAppTests' do
    inherit! :search_paths
    # Pods for testing
  end

end
+4
source share

Source: https://habr.com/ru/post/1659581/


All Articles