firebase-ios-sdk: Linker error because symbol _OBJC_CLASS_$_GULAppDelegateSwizzler is not found

Environment

  • Xcode version: 10.0 beta 6 (10L232m)
  • Firebase (5.6.0)
  • FirebaseAnalytics (5.1.1)
  • FirebaseAuth (5.0.3)
  • FirebaseAuthInterop (1.0.0)
  • FirebaseCore (5.1.1)
  • FirebaseDynamicLinks (3.0.2)
  • FirebaseFirestore (0.13.1)
  • FirebaseInstanceID (3.2.1)
  • FirebaseMessaging (3.1.0)
  • FirebasePerformance (2.1.1)
  • GSKStretchyHeaderView (1.0.4)
  • GTMSessionFetcher (1.2.0)
  • Google-Mobile-Ads-SDK (7.31.0)
  • GoogleAppMeasurement (5.1.1)
  • GoogleToolboxForMac (2.1.4)
  • GoogleUtilities (5.2.2)

Problem

Whenever I try to run the project, it crashes because it cannot find the following symbol _OBJC_CLASS$_GULAppDelegateSwizzler. The GULAppDelegateSwizzler header file seems to be marked as private in the Pod target. screenshot 2018-08-22 16 55 39

Steps to reproduce:

pod install build & run project on either the simulator or a device

Relevant Code:

Pod file:

    pod 'FirebaseCore'
    pod 'FirebaseAuth'
    pod 'FirebaseFirestore'
    pod 'FirebaseMessaging'
    pod 'Firebase/Performance'
    pod 'Firebase/AdMob'
    pod 'Firebase/DynamicLinks'

Crash log:

dyld: Symbol not found: _OBJC_CLASS_$_GULAppDelegateSwizzler
  Referenced from: /var/containers/Bundle/Application/AD8EE835-9A64-4D31-A865-AD90422BE9BF/MyApp.app/MyApp
  Expected in: /private/var/containers/Bundle/Application/AD8EE835-9A64-4D31-A865-AD90422BE9BF/MyApp.app/Frameworks/GoogleUtilities.framework/GoogleUtilities
 in /var/containers/Bundle/Application/AD8EE835-9A64-4D31-A865-AD90422BE9BF/Cloudy.app/Cloudy

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 27 (9 by maintainers)

Most upvoted comments

I encountered the same issue. I created a minimal sample project which demonstrates this issue. It’s available here: https://github.com/PatrickNLT/FirebaseSwizzlingSample

  • Xcode 10.1
  • CocoaPods 1.5.3

@paulb777 don’t hesitate to have a look. Thanks! 👍

Sadly, I’m back to this issue 😞 I’ll try to see if I can find a solution. The one above is no longer applicable.

@tejasd When adding firebase/firestore to my Widget target I get a linker error.

target 'WIDGET' do
pod 'Firebase/Firestore' <=== no good

end

@tejasd @paulb777 I think It was due to the switch from Xcode 9 to 10 plus a pod update that somehow messed up my project. I did a rollback and tried it again and worked. I also no longer have two GoogleUtilities frameworks linked right now, I have none, apparently. screenshot 2018-08-23 08 44 34

Thanks for reaching out to me, you guys are doing a great job and last but not least thanks for building this great tools.