To use the Cloud Functions iOS SDK (Software Development Kit), follow these steps.
This SDK contains a boilerplate XCode project.
Extract the SDK and navigate to the project directory.This starter application invokes, on the phone, a built-in action on the 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 FunctionsIOSStarterApp target.
Open ViewController.swift, and overwrite these two lines.These are your authorization settings for the United Kingdom region.
let WhiskAppKey = "<Please log in to see your credentials>"
let WhiskAppSecret = "<Please log in to see your credentials>"