Start integrating Google+ into your iOS app

Google+ Sign-In is deprecated, and is likely to
not function as expected. Do not use Google+ Sign-In in new apps. To
sign in users with their Google Accounts, use
Google Sign-In. See the
migration guide
to migrate from Google+ Sign-In.

Before you can begin integrating your iOS app with the Google+ components, you
must create a Google API Console project, download the SDK, and configure
your Xcode project. The steps on this page do just that. The
next steps then describe how to integrate Google+ features
into your app.

When the process completes, Google+ API appears in the list of enabled APIs.
To access, select APIs & Services on the left sidebar menu, then select the
Enabled APIs tab.
Enable any other APIs that your app requires.

In the sidebar under "APIs & Services", select Credentials, then select
the OAuth consent screen tab.

Choose an Email Address, specify a Product Name, and
select Save.

In the Credentials tab, select the New credentials drop-down list,
and choose OAuth client ID.

If your app is published in the Apple iTunes App Store, enter your
app's App Store identifier in the App Store
ID field. You can determine the ID from the "id" part of
your app's URL on the iTunes website:
http://itunes.apple.com/us/app/id<YOUR_APP_STORE_ID>.

Select the Create
button.

In the resulting Client ID for iOS application pop-up, note or copy the
Client ID that your app will need to run the sample.

Step 2. Initialize the Google+ Client

Initializing the client sets up your project with the minimal settings.
Depending on your app's needs, you will further configure your project to handle
signing in with Google+, sharing, and writing app activities to Google.

Download the Google+ iOS SDK, if you haven't
already. The SDK includes:

GooglePlus.framework

GooglePlus.bundle resource bundle with assets for the Google+ Sign-In
button.

GoogleOpenSource.framework which is a static framework that contains all
of the files within the OpenSource directory.

The sample Xcode project.

Extract the files from the downloaded SDK archive.

Include the following frameworks in your Xcode project:

AddressBook.framework

AssetsLibrary.framework

Foundation.framework

CoreLocation.framework

CoreMotion.framework

CoreGraphics.framework

CoreText.framework

MediaPlayer.framework

Security.framework

SystemConfiguration.framework

UIKit.framework

Drag and drop the following frameworks from the SDK into your XCode project:

GooglePlus.framework

GoogleOpenSource.framework

If your project already includes some of the open source files, you can
instead include the remaining files from the OpenSource folder.

If you plan to use the sign-in button provided by the SDK, include the
GooglePlus.bundle in your XCode project to add it to your target.