• All Regions
      Cloud Foundry Org
    • None
        Cloud Foundry Space
      • All Spaces

        Setting up the iOS SDK

        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.
        unzip cd OpenWhiskIOSStarterApp.xcodeproj
        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 __display_name__ region.
        let WhiskAppKey = "<Log in to see your credentials>" let WhiskAppSecret = "<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 Cloud Functions documentation.