How to use GoogleDrive and GooglePlus API in one app in iOS? - 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....
Thanks in advance!

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:
Delete GoogleOpenSource.framework from your projectList item
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

It's much more simpler than #Ian's answer. No offence #Ian. :)
SVN checkout from http://google-api-objectivec-client.googlecode.com/svn/trunk
After checkout completes, Go to Source folder and open GTL.xcodeproj.
See the image

Related

Unable to use Google Analytics for iOS

I don't know what Happens to the code or google.
I just Downloaded the Sample App for Google Analytics for Google.
I downloaded it via pod using:
pod try Google
and chooses the option for Analytics.
After downloading when I build the project I am getting Linker Error.
Fully Stuck Tried All The way available in SO.
Removed -ObjC Flag
Removed -force-load Flag
Changed Load Common Section from Yes to NO
But none of the way help me Out. What is the issue with it.
Here is the Screen shot of the Error:
Here is the Following reason of this ERROR :
*Note - Integrated GooGle Analytic without CocoaPods.
If latest GA(Google Analytics) sdk is using then better to upgrade to Xcode 7 otherwise it will give you duplicate error (even if configured properly)
Running with Xcode 6.2 or < Xcode 7 then better to download September (August) Release Sdk.
Go with Xcode and select GA folder and right click - choose show in Finder then all files should be there . If yes then check is there two different copy exists in other folder .
Thanks
It basically says that there are functions duplications in the project...
Make sure the following:
The project does not have #import for .m files by mistake
In the projects build phases there are no file names duplications
There are no initialized variables in .h files e.g "int
variableA = 5"
If none of the above works, remove in project settings Other Linker
Flags "-ObjC", that will allow to load the same functions more then
one time.

Facebook SDK for iOS: Where is the wizard?

Trying to follow Facebook's instructions for adding the iOS SDK but they lost me at step 1.
The download is a zip file containing the following:
Anyone have any idea where this wizard is?
Hey there is nothing related with the wizard. Now you have the SDK containing the required framework. Now simply use those frameworks in your project. For further help follow "https://developers.facebook.com/docs/ios/getting-started".

How can I found facebookSDK.framework on facebookSDK v4.0.1?

So I've downloaded facebookSDK pkg, and I already installed it to on my document folder. But I can't find facebookSDK.framework inside the folder, I need it for my iOS project. Where I can find it?
Pretty sure the framework you are after is FBSDKCoreKit.framework. If you are manually adding the framework this is found in the folder you have installed in your documents folder. This includes the ability to see:
- Sharing
- Login with Facebook
- App Events
- Graph API calls
Information found on https://developers.facebook.com/docs/ios/getting-started
If you are working on an old app which is using FacebookSDK previous framework then you need to download that old version like 3.XX but if you are developing a new app and integrating new Facebook then you need to use FBSDKCoreKit.framework that is in v4.0.1
Some functions in never version are modified.
For details study the Facebook documentation
The above two answers are correct. Refer these if you want more clarification
First One
Second One

installing AWS ios sdk in swift project

I'm trying to add the AWS SDK to my xcode project that is written in swift.
I followed these steps: http://mobile.awsblog.com/post/Tx2AA7ZHB1FK0G1/Version-2-of-the-AWS-SDK-for-iOS-Developer-Preview to create a Bridge-Header file, and add the SDK itself to my project.
The problem is that when I try to build the app I get an error now... the Bridge Header cannot be imported because one of the files in the AWS SDK (AWSModel.h) has an error. This file tries to import Mantle/Mantle.h, and the error reads "Mantle/Mantle.h file not found"
do I need to add this file to my project as well? If so, how would I go about doing that? The only frameworks I'm using are Facebook SDK, and I would like to add AWS as well.
There is a working sample app on GitHub. You should follow README and see if you can compile the app. It should help you understand how to set up the project.

I can't find facebook.m file from facebooksdk.framework 3.1

I am using phonegap facebook plugin.
When I tried to login from my app, fbAppAuth dialog and safariAuth occurs at the same time.
So, although I finished safariAuth , fbAppAuth dialog appears. I need to turn off one of them
and found solution from below link.
How to authorize user through a DIALOG with the NEW Facebook Connect iOS API?
But, I need to modify facebook.m file which is I don't have. I am using facebooksdk.framework 3.1
and there is only facebook.h file but no facebook.m file.
How can I find facebook.m file from my project? or.... is it something I should download?
any help will be appreciated..
In FBSession.h the enum FBSessionLoginBehavior is what you're looking for.
Replace all occurrences of the other values with FBSessionLoginBehaviorForcingWebView to force FB to open a WebView.
This took me hours to figure out. I hope this helps you.
The new FacebookSdk.framwork is in form of static library which you can't update or change and you have to use as it is.
But if you want to update facebook.m then you download sdk source from github where you can found the source files for the sdk where you can update files whichever you want. I am giving link below from where you can download the source.
https://github.com/facebook/facebook-ios-sdk
Optional:-(if you getting error with iOS 6.x)
once you download the source then open the Facebook-ios-sdk project file and build the files using armv7 and armv7s architecture if you want to use sdk with iOS 6.x

Resources