I am trying to integrate Google APIs Objective-C Client Library in my application, I follow the guide given in this link. but now the problem is it is giving me 8 errors. And i am unable to understand where the problem is. Can any one guide me where the problem is, I am using xcode 4.6
-
Please see comment section in the link you have posted. There are few steps missing. – Iducool Aug 29 '13 at 13:18
-
yes, i had also follow those steps – Iqbal Khan Aug 29 '13 at 13:22
-
and i had also delete the _Sources.m file – Iqbal Khan Aug 29 '13 at 13:23
-
1have you tried to run it on device? Might be your .a file is generated for device only. You can check architecure for what this file is generated. – Iducool Aug 29 '13 at 13:41
-
@Iducool you know man you are genius, can you tell me why it is not working on simulator – Iqbal Khan Aug 29 '13 at 13:54
-
can you tell me what should i set for architecture to make it work on simulator – Iqbal Khan Aug 30 '13 at 04:20
2 Answers
Try to add in project target build setting headers and frameworks search path to google API folder path.

- 591
- 4
- 16
-
i added "$(SRCROOT)/../libGTLTouchStaticLib.a" in framework search path and also the header path too in header path, but same errors – Iqbal Khan Aug 29 '13 at 13:48
-
Actually You have compiled that static library for Device only. To compile it for Simulator just select the "iPhone 6.x Simulator" or any whatever simulator version you have available in GTL.xcodeproject and compile that project. And follow that same process that is mentioned in tutorial.
After you have compiled and build, goto Organiser->Projects->GTL and click on the little arrow for Derived Data.
You will find libGTLTouchStaticLib.a file and Headers folder in derived data's project folder->Build->Products->Debug-iphonesimulator
First rename that static library because you have already added static library for device with the same name after that drag that file into your project.

- 3,543
- 2
- 24
- 45