Google/Analytics.h file not found when adding to AppDelegate

前端 未结 8 1607
迷失自我
迷失自我 2020-12-30 04:06

I am trying to integrate Google Analytics in my ios project using Cocoapods. However, after following this for the steps till adding configuration file to my project, when i

8条回答
  •  半阙折子戏
    2020-12-30 04:43

    Check if you have multiple targets, in this case add pod 'Google/Analytics' foreach target in you pod file:

    def google_pods
    pod 'Google/Analytics'
    end
    
    target 'target 1' do
        google_pods
    end
    
    target 'target 2' do
        google_pods
    end
    
    target 'target N' do
        google_pods
    end
    

提交回复
热议问题