IOS Sample for Google Drive SDK

I am following the instructions in the iOS sample which has the google drive sdk; https://developers.google.com/drive/ios/quickstart

I think I am doing all the same steps as in the tutorial and video, but keep getting an Apple Mach-0 Linker error that has data like

Undefined symbols for i386 architecture: "_OBJC_CLASS _ $ _ GTL; DRiveFile" referenced by: objc-class-ref in ViewController.o "_OBJC_CLASS _ $ _ GTLQueryDrive" referenced: objc-class-ref in ViewController.o "_OBJC_CLASS _ $ _ GTLServiceDrive" referenced by: objc-class-ref in ViewController.o "_OBJC_CLASS _ $ _ GTLUploadParameters" referenced by: objc-class-ref in ViewController.o Msgstr "". objc-class-ref in ViewController.o "_kGTLAuthScopeDriveFile" referenced by: - ​​[ViewController createAuthController] in ViewController.o ld: Symbol not found for i386 clang architecture: error: linker command failed with exit code 1 (use -v to call the call)

I think they are similar to the errors that occurred in the video at 13:45

I can't figure out where my error is, any ideas?

+3


source to share


3 answers


It looks like this was triggered in step 3.8. When adding the Drive service files, you also need to ensure that all targets are selected. When I repeated this, I noticed that only the * Tests target is selected by default, so these files are not compiled when the application is built. A similar situation can occur with the .xib file in the previous step.

So, in steps 3.7 and 3.8, be sure to select both "Copy items ..." options as well as both targets in the "Add to targets" list.



Let me know if this fixes this for you and I am updating the quickstart to be a little more specific.

+4


source


click on build phases-> compile sources now add GTL files; DRIVE_Sources.m and viewcontrolller.m



it worked for me

+3


source


Better to use Google Drive with a pod. Here is the "White Paper" on Google Rest Rest API

This is an example of a library. You can use this to understand

GoogleDriveBrowser

0


source







All Articles