Reputation: 61
My question is in someway related to the question stackoverflow.com/questions/20206565/… but the answers there do not help. I just cloned a project my co developer is working on currently and got this weird error:
"GAI.h file is not found"
Note : I have not done anything to the project.It runs perfectly in her system. Both of us use xcode 6.
(GAI.h is a header file inside GoogleAnalytics-iOS-SDK). The project uses Cocoapods and the pod file has 'GoogleAnalytics-iOS-SDK', '~> 3.0.1'also GAI.h file is present. I tried removing the SDK, adding again and cleaning but nothing worked for me. If anyone can give me some valuable inputs.
Upvotes: 3
Views: 7921
Reputation: 66
Try changing your import in the header file from this... #import <GAI.h>
to this, so that it includes the module name... #import <GoogleAnalytics/GAI.h>
Upvotes: 1
Reputation: 716
I'm posting this here so that anybody facing this problem can solve it:
Change your podFile to have
pod 'Google/Analytics', '~> 2.0.4'
I have no idea why the version 3.0.3
has this problem... Hopefully Google will fix this one day.
Upvotes: 0