- Download the iOS SDK
This SDK contains a boilerplate XCode project.
- Extract the SDK
Extract and navigate to the project directory. In response to smartphone input, this starter application invokes a built-in action on the Cloud Functions server.
- Install the Cloud Functions iOS SDK into the Starter App using your dependency manager
For CocoaPods: Run
pod install, and open the resulting Xcode workspace.For Carthage: Run
carthage update. This will create Carthage/Build/iOS/Cloud Functions.framework. Open Xcode and add that file to the embedded binaries section of the Cloud Functions iOS Starter App target.
- Change the ViewController.swift
Open ViewController.swift, and overwrite these two lines. These are your authorization settings for the region.
- Test it
Verify your setup by running the project. In the iPhone simulator, click "Tap Me", and the current date should be displayed.