Does Google Sign-in SDK iOS support iOS6? - ios

My project must support iOS6.
I use Google Sign-In SDK v2.4.0.
But When I selected Target , the GoogleSignIn.framework (optional) in Xcode project and run on the iOS6 device, dyld log tells
dyld: Symbol not found: _OBJC_CLASS_$_NSURLSessionConfiguration.
Is there how to use this in iOS6 Device??

The GoogleSignIn guides don't state a minimum SDK version however...
NSURLSessionConfiguration was introduced in iOS7 so if you are getting that issue when trying to link to the SDK then iOS 6 certainly isn't supported.
Checking out the sample project (pod try Google) and it also has the Deployment target set to iOS 7.0 so it looks like you are out of luck I am afraid. Maybe look at using an older version but I can't help you with what version supports iOS 6 and I would not know if it is still supported/maintained by Google.

Related

Check Base SDK at run time

I'm building a library and some of the functionality is broken when the app using it is running newer base SDK (xCode 6, Base SDK iOS 8.0).
When trying to fix the issue, the Applications built with older SDKs are broken. (xCode 5, Base SDK 7.1)
It's not related to the version on the device.
Is there a way to check in code what's the Base SDK set by the App?
You can use macros. As described by rckoenes in this question you can use macro __IPHONE_7_0 to know that you are compiling with iOS 7.0 SDK. For iOS 8.0 SDK you can use __IPHONE_8_0 macro of course. These macros are defined in Availability.h header.
Also be sure to read Apple's SDK Compatibility Guide to understand more about working with multiple SDK's.

GooglePlus Not Supporting for IOS 4.3

I have a Application Where i am integrating GooglePlus SDK to support GooglePlus.Its working fine till IOS 5.But when we run on IOS 4.3 it crashes with following Error.
dyld: Symbol not found: _OBJC_CLASS_$_UIStoryBoard
i am not using Any storyBoard in my Application but why this error Comes??
As per googlePlus Documentation it supports From IOS 5. But i just want to Know there is any way where we can make it work for IOS 4.3 as my Application Supports from IOS 4.3.
Is it Possible To support for IOS 4.3? If Yes how can we solve this.
As you can see from the exception, class UIStoryBoard is not supported in earlier versions of iOS than 5.0.
Since Google Plus SDK uses Storyboard in some way, unknown to me personally, you cannot use this SDK with any iOS that has version less than 5.0.
Reference from Apple:
UIStoryboard: Available in iOS 5.0 and later.
P.S. It seems to me that it is too redundant for any kind of a project to support version that is 3 releases older than current - iOS 7.

how to implement google map api on ios5.1 and ios6 upper both?

I have a question.
I need to implement Google Maps API on iOS5.1 and iOS6.
I know google map have bulid in ios 5.1. But the Google Map API become third part if you need to use.
I need to implement google maps api on iOS5.1 and iOS6.
I reference the Google Map SDK API Tutorial.
The tutorial point to Supported Platforms is iOS SDK 6.0 or later.
I implemented Google Maps API on iOS6 is correct show the maps.( use iPhone 6.0 Simulator)
I am use ios Deployment Target 5.1.
But If I change to iPhone 5.1 Simulator.
The application had crashed.
I checked the crash problem reason is "Other Linker Flags set -ObjC" cause.
But I need to implement the Google Maps on iOS 5.1 and iOS6 .
How to resolve this problem, please?
How to write the google maps api on ios5.1 and ios6 both?
thank you very much.
I attach to the log on distributed on iOS 5.1 version :
yld: Symbol not found: _OBJC_CLASS_$_UIActivityViewController
Referenced from: /Users/mac/Library/Application Support/iPhone Simulator/5.1/Applications/EC6760CC-D272-4949-A5BA-6AFB8B0C1A8F/HM.app/HM
Expected in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDK s/iPhoneSimulator5.1.sdk/System/Library/Frameworks/UIKit.framework/UIKit
in /Users/mac/Library/Application Support/iPhone Simulator/5.1/Applications/EC6760CC-D272-4949-A5BA-6AFB8B0C1A8F/HM.app/HM
According to the Google Maps SDK for iOS release notes:
"Version 1.5.0 requires iOS 6.0 or later. Applications that must support iOS 5.1 should continue to use the most recent 1.4.x release."
You'll just have to use the older version of the SDK.

ios conditionally switch off facebook sdk

I integrated Facebook Ads SDK to my app. However, minimal supported iOS version for SDK is 5.0, and deployment target for my app is 4.3.
And, as expected, it crashes on app launch saying
dyld: Symbol not found: OBJC_CLASS$_NSJSONSerialization.
It happens at a very early stage of app start. Call stack looks as
Thread1:
dyld_fatal_error
_dyld_start
So I want to switch off Facebook SDK for iOS 4.3 and keep it for iOS >= 5.0. Is it possible? How can I do it in xCode? Or the only way is to split my app into two apps: for 4.3 and for >= 5.0?
Update
Accordingly to NSJSONSerialization crash with Facebook iOS SDK 3.5 marking Foundation.framework as optional helps. It really helps, but I cannot understand it. What has Foundation.framework to do with Facebook stuff??
Go to the build phases of your target. Under Link binary with Libraries select your framework and make it as optional

iOS app Facebook integration - fallback for iOS 5.0

I'm using the native Facebook integration for my iOS app and it's working great, but my target is iOS 5.0 and above. The Facebook API is available only in iOS 6.0+, so my question is how can I "remove" the facebook integration for older iOS versions? Right now when I build I'm getting this:
dyld: Library not loaded: /System/Library/Frameworks/AdSupport.framework/AdSupport
Referenced from: /Users/me/Library/Application Support/iPhone Simulator/5.0/Applications/96919EDB-C9E9-4862-ABA2-67ABAFAFB9BE/Tlipo.app/Tlipo
Reason: image not found
I want to keep the FB integration only for iOS 6+ users, so I just want to remove it from iOS 5 devices. How do I remove the libraries so that my app doesn't crash in iOS 5?
Thanks! :)
Click on Xcode project.
Goto Build Phases
Expand "Link Binary With Libraries"
For (1)Social.framework(2)Account.framework(3)AdSupport.framework
Select Optional (At the far right hand side, by default they will have Required as selected)
Following the above mentioned steps, You are telling your App that only load those framworks if available (means for iOS 6.0 and upwards)
It should look like this after following the steps mentioned:
Most probably your problem will be solved.
Let me know, whether it worked or not!
I would recommend you to use the SDK from Facebook instead of the one from Apple. The officla SDK from Facebook supports iOS 5.0 as well, and it is pretty easy to use.
Have a look at https://developers.facebook.com/docs/getting-started/facebook-sdk-for-ios/

Resources