GIDSignIn.h file not found on xcode 7.3, Unity 4.7.1, admob 3.0.3, cocoapod 0.39.0

2,740 views
Skip to first unread message

Imtiaj Ahmed

unread,
Apr 27, 2016, 4:37:13 PM4/27/16
to Google Mobile Ads SDK Developers
Stuck for three days. Whatever fixes I found on net, tried it. But Xcode is telling the same error 'GIDSignIn.h' file not found. How do I fix this? Anyone having this issue? Did you solve this somehow? Please share.
- Unity v4.7.1
- OS X El Capitan
- Xcode v7.3
- admob plugin for Unity3d v3.0.3

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Apr 27, 2016, 4:48:02 PM4/27/16
to Google Mobile Ads SDK Developers
Hi Admed,

After you make a build for iOS, edit the PodFile to include this - pod 'Google/SignIn'. Do let us know if that fixes the issue. Make sure to run pod install once done.

Thanks,
Veer Busani
Mobile Ads SDK Team

Imtiaj Ahmed

unread,
Apr 27, 2016, 5:41:07 PM4/27/16
to Google Mobile Ads SDK Developers
Hi Veer,

Thank you for your solution. But it is not working. I can see that pod have installed some google frameworks. Even I can see the file GIDSignIn.h file there. But still getting the same error. Things I have done additionally - 1. Added $(inherited) to other linker flags...here comes some -ObjC|"GGLCore"|"GGLSignIn"|...etc. here, but no luck. 2. Deleted Admob plugin assets with the resolver from unity...re-imported...rebuild for iOS...modified pod file...install from terminal...and the first steps(without & with) but still the same error. Apparently, I am missing something...new to Xcode. Do I have to change other things on Xcode? Something like additional framework(s) to add?

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Apr 28, 2016, 10:06:14 AM4/28/16
to Google Mobile Ads SDK Developers
Hi Ahmed,

I would suggest you to first import only the Mobile Ads plugin for Unity and try to build. Also make sure that you these in your Build Settings of your Xcode project - 
  • Set Enable Modules (C and Objective-C) to Yes in Build Settings.
  • Add $(inherited) to Other Linker Flags in Build Settings. Only add this along with the default ones generated from the Unity build.
Let us know if that fixes the issue. You might also want to follow this issue tracker. Do get back to us if it does not fix it. You can also send us your sample app for us to debug the issue.

Thanks,
Veer Busani
Mobile Ads SDK Team

Imtiaj Ahmed

unread,
Apr 28, 2016, 11:55:31 AM4/28/16
to Google Mobile Ads SDK Developers
Hi Veer,

Thank you so much so much so much. It was like a nightmare for me. As you said, when I opened up new clean project with unity and only admob, to my surprise, it worked. Then I found what I was missing, Re-opened my project, deleted the folders and files created by admob...(specifically the plugins folder...which was the issue...project was for android and there were some files modified before to suit my need) re-imported admob plugin...built...added the line pod 'Google/SignIn' to the pod file...open terminal...go to the folder path and type pod install...open xcworkspace file with xcode...and only added $(inherited) to the Unity-iPhone project (not the pods project...previously I added here too)...and to my surprise...with your help...build succeeded. I have described like this workflow so that if somebody stumbles upon here with the issue...s/he may find it helpful.

Thank you again.
Reply all
Reply to author
Forward
0 new messages