I tried the instructions in the sample App from this link. https://developers.google.com/gmail/api/quickstart/ios?ver=swift. I encountered several problems. Can someone take a look at the documentation and let me know what I need to do to get this app working? I tried this in Xcode 7.2 and older version of XCode (6.3+). I got the same results in both.
These are the problems with the documentation that I encountered:
1. Step 3.b: The file mentioned in the step google-api-objectivec-client/Source/GTL.xcodeproj does not exist.
2. Step 3.d: The build target GTLTouchStaticLib does not exist.
3. Step 3.e and 3.f is not required (those files/build targets) do not exist
4. Step 4.d Supporting Files group does not exist
5. There are two Step 4 (Step 4 prepare the project, Step 4: Setup Sample)
6. The sample code in Step 4: Setup Sample has compile errors at this statement
7. output.autoresizingMask = UIViewAutoresizing.FlexibleHeight | UIViewAutoresizing.FlexibleWidth
8. I was able to search around and get the problems resolved above the best I could. But at the final step, I got these linker errors. I am not sure how to get around this one.
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_GTLObject", referenced from:
_OBJC_CLASS_$_GTLGmailDraft in GTLGmail_Sources.o
_OBJC_CLASS_$_GTLGmailHistoryLabelAdded in GTLGmail_Sources.o
_OBJC_CLASS_$_GTLGmailHistoryLabelRemoved in GTLGmail_Sources.o
_OBJC_CLASS_$_GTLGmailMessage in GTLGmail_Sources.o
_OBJC_CLASS_$_GTLGmailHistoryMessageAdded in GTLGmail_Sources.o
_OBJC_CLASS_$_GTLGmailHistoryMessageDeleted in GTLGmail_Sources.o
_OBJC_CLASS_$_GTLGmailHistory in GTLGmail_Sources.o
...
"_OBJC_CLASS_$_GTLQuery", referenced from:
_OBJC_CLASS_$_GTLQueryGmail in GTLGmail_Sources.o
(maybe you meant: _OBJC_CLASS_$_GTLQueryGmail)
"_OBJC_CLASS_$_GTLService", referenced from:
_OBJC_CLASS_$_GTLServiceGmail in GTLGmail_Sources.o
(maybe you meant: _OBJC_CLASS_$_GTLServiceGmail)
"_OBJC_CLASS_$_GTMOAuth2Authentication", referenced from:
type metadata accessor for __ObjC.GTMOAuth2Authentication in ViewController.o
"_OBJC_CLASS_$_GTMOAuth2ViewControllerTouch", referenced from:
type metadata accessor for __ObjC.GTMOAuth2ViewControllerTouch in ViewController.o
"_OBJC_METACLASS_$_GTLObject", referenced from:
_OBJC_METACLASS_$_GTLGmailDraft in GTLGmail_Sources.o
_OBJC_METACLASS_$_GTLGmailHistory in GTLGmail_Sources.o
_OBJC_METACLASS_$_GTLGmailHistoryLabelAdded in GTLGmail_Sources.o
_OBJC_METACLASS_$_GTLGmailHistoryLabelRemoved in GTLGmail_Sources.o
_OBJC_METACLASS_$_GTLGmailHistoryMessageAdded in GTLGmail_Sources.o
_OBJC_METACLASS_$_GTLGmailHistoryMessageDeleted in GTLGmail_Sources.o
_OBJC_METACLASS_$_GTLGmailLabel in GTLGmail_Sources.o
...
"_OBJC_METACLASS_$_GTLQuery", referenced from:
_OBJC_METACLASS_$_GTLQueryGmail in GTLGmail_Sources.o
(maybe you meant: _OBJC_METACLASS_$_GTLQueryGmail)
"_OBJC_METACLASS_$_GTLService", referenced from:
_OBJC_METACLASS_$_GTLServiceGmail in GTLGmail_Sources.o
(maybe you meant: _OBJC_METACLASS_$_GTLServiceGmail)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)