Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

GoogleCloudPlatform/appengine-endpoints-helloendpoints-ios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

appengine-endpoints-helloworld-ios

This application is a HelloWorld iOS sample application that connects to a HelloWorld Google Cloud Endpoints backend sample.

It relies on a copy of the Google APIs Client Library for Objective-C.

This example also uses ARC. If your application uses ARC you must set the -fno-objc-arc for the files included in the client library; see the client library project ARC notes.

Products

Language

APIs

Setup Instructions

  1. Clone this git repo locally. git clone https//github.com/GoogleCloudPlatform/appengine-endpoints-helloendpoints-ios.git

  2. Clone a Hello Endpoints Backend sample locally and BUILD it. These instructions will assume the project was downloaded to ~/appengine-endpoints-helloendpoints-java-maven and mvn clean install was used to build.

  3. Pull down the Google Client Library Objective-C client library to a subdirectory. cd appengine-endpints-helloendpoints-ios/Hello\ Endpoints/ svn checkout http://google-api-objectivec-client.googlecode.com/svn/trunk/ google-api-objectivec-client-read-only

  4. Build the ServiceGenerator to generate an Objective-C client library. open google-api-objectivec-client-read-only/Source/Tools/ServiceGenerator/ServiceGenerator.xcodeproj Hit the play button to build the project.

  5. Generate your custom service files to work with the Google Client Library.

    1. Find the ServiceGenerator binary by opening Project Navigator > Products > ServiceGeneator then copying the location from the inspector on the right side of Xcode. It will typically be something like this: /Users/<your_user_id>/Library/Developer/Xcode/DerivedData/ServiceGenerator-<random-guid>/Build/Products/Debug/ServiceGenerator
    2. Run the ServiceGenerator on your discovery document. /Users/<your_user_id>/Library/Developer/Xcode/DerivedData/ServiceGenerator-<random-guid>/Build/Products/Debug/ServiceGenerator \ ~/appengine-endpoints-helloendpoints-java-maven/target/helloendpoints-1.0-SNAPSHOT/WEB-INF/helloworld-v1-rpc.discovery \ --outputDir ./API
  6. Open the Project in Xcode open Hello\ Endpoints/Hello\ Endpoints.xcodeproj

  7. Build project by hitting the play button in the top left-hand corner.

  8. Modify kMyClientId and kMyClientSecret in ViewController.m to include the web client ID and client secret you registered in the APIs Console.

  9. Modify GTLServiceHelloworld.m (line 44) to point to the location where you are hosting a Helloworld backend.

  10. Run the application.

About

A "hello world" iOS client for Google Cloud Endpoints

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published