Using Firebase on iOS

I created a Pod that should use Firebase Analytics. The problem is that if I try to use my Pod with my application, it fails because it cannot find the FirebaseAnalytics module inside my Pod. This is a known issue. So I tried to integrate Firebase without CocoaPods by copying the necessary Firebase frameworks. I created a Pod, listed the Firebase frameworks in the Podspec file, but when I tried to create the application, it failed with

FirebaseInstanceID not found for arm64 architecture

Any help would be appreciated!

Podspec is as follows:

Pod::Spec.new do |s|
...
  s.platform     = :ios, "9.0"

  s.vendored_frameworks = 'FirebaseAnalytics.framework', 'FirebaseCore.framework', 'FirebaseInstanceID.framework', 'GoogleInterchangeUtilities.framework', 'GoogleSymbolUtilities.framework', 'GoogleToolboxForMac.framework'

  s.dependency 'AFNetworking', '~> 2.6'
  s.dependency 'PromiseKit', '~> 4.0'
  s.dependency 'KeychainAccess', '~> 3.0'
  s.dependency 'libPhoneNumber-iOS', '~> 0.8'
  s.dependency 'SVProgressHUD', '~> 1.1'
  s.dependency 'SwiftyJSON', '~> 3.1.3'
  s.dependency 'JTAppleCalendar', '~> 6.0'

  s.pod_target_xcconfig = { 'SWIFT_VERSION' => '3' }
...
end
+4
source share

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


All Articles