To use the OpenWhisk 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.
unzip cd OpenWhiskIOSStarterApp.xcodeproj
Install the OpenWhisk 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/OpenWhisk.framework. Open Xcode and add that file to the Embedded Binaries section of the OpenWhiskIOSStarterApp target.
Open ViewController.swift, and overwrite these two lines.These are your authorization settings for the US South region.
let WhiskAppKey = "<Please log in to see your credentials>" let WhiskAppSecret = "<Please log in to see your credentials>"
Verify your setup by running the project. In the iPhone simulator, click Tap Me, and the current date should be displayed.
XCode Screenshot
For more detail, consult the online OpenWhisk documentation.