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

前端 未结 8 1606
迷失自我
迷失自我 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 05:03

    Also my $0.02 to this, since it seems to be a never ending story. None of the suggestions above did help. I got this obscure message from pod install

    [!] The `blabla [Release]` target overrides the `HEADER_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-blabla/Pods-blabla.release.xcconfig'. This can lead to problems with the CocoaPods installation
    

    Finally I inspected my project.pxbprojand found, that I had this entry:

    HEADER_SEARCH_PATHS = "";`
    

    Obviously this is treated as "defined", so I changed it to

    HEADER_SEARCH_PATHS = "$(inherited)";
    

    and boom - all the Google suggested includes work

    #import 
    #import 
    #import 
    

提交回复
热议问题