Undefined symbols for architecture armv7: “_OBJC_CLASS_$_GGLContext”, referenced from: objc-class-ref in AppDelegate.o

后端 未结 6 1934
感动是毒
感动是毒 2020-12-08 11:12

I am trying to add Google Analytics in my iSO app and I am using Google Analytics latest SDK https://developers.google.com/analytics/devguides/collection/ios/v3/.

A

6条回答
  •  心在旅途
    2020-12-08 12:10

    This happened to me when I set up a development target. The production target was working fine but the development kept bringing up those errors. My issue was in the pod file. At first:

    target 'NAME-OF-TARGET' do
    # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
    use_frameworks!
    
    # Pods for MAIN-TARGET
    pod 'GoogleSignIn'
    pod 'Firebase/Core'
    pod 'Firebase/Database'
    
    target 'DEV TARGET' do
        inherit! :search_paths           <----------
        # Pods for dev-target
        pod 'GoogleSignIn'
        pod 'Firebase/Core'
        pod 'Firebase/Database'
    end
    

    The line I have indicated the arrow was the issue. I changed it from inherit! :search_paths to use_frameworks! and the errors were done.

提交回复
热议问题