Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use GoogleDrive and GooglePlus API in one app in iOS?

I am developing an app that google-drive-sdk has been successfully integrated onto, but now I want to share my app on google-plus so I used Google+ SDK, and it conflicts with GoogleDrive SDK.

I used GTLDriveFile Class for GoogleDrive, and I followed these steps for installing GoogleDrive.

It works fine with just GoogleDrive SDK. But if I add Google+ SDK then it'll conflict with GoogleDrive SDK. I've tried lots of time and searched on Google but I can't find anything.

I only found these links:

1: (SO) How to implement Google Drive and Google Plus sdk in ios project

2: (YouTube) Google Drive SDK: using the Google+ Sign-In button with Drive on iOS

Update:

It displays duplicate symbols for architecture i386

If I delete one file then it will display the same error in another file because in following folder

GTL->GTL Source->Common->Objects

which has all the files, which are already available in

GoogleOpenSource.framework

And if I deleted all the .h files from the GTL folder then it won't work either, it gives a 'file not found' error.

Can anyone help me?

Update

If I had not added GoogleOpenSource.framework but I added only GooglePlus.framework then it gives me error like....

enter image description here

Thanks in advance!

like image 249
SAMIR RATHOD Avatar asked Dec 06 '25 07:12

SAMIR RATHOD


1 Answers

You should be able to drop the GoogleOpenSource.framework - that just includes the Plus relevant parts of GTL and GTM which you're likely to be bringing in as part of the Drive client library. If you need any files from it, you can find the source version of whats included within the original SDK zip you downloaded.

To be clear:

  1. Delete GoogleOpenSource.framework from your projectList item
  2. If there are any errors on missing files, bring those in individually from the open source folder in the Google+ SDK zip. Include both the .m and .h files
like image 153
Ian Barber Avatar answered Dec 08 '25 19:12

Ian Barber