Build the iOS Client Software Libraries

Build the client software libraries from the provided source files.

You can use an automated build script and Gradle or Xcode to build the client software libraries.
  1. Open a web browser and browse to the Oracle Internet of Things Cloud Service client software libraries download site.
  2. Scroll to iOS Client Software Libraries and download the Source Code zip file from the iOS table.
  3. Extract the contents of the zip file.
  4. Download and install Gradle. Versions 2.5 to 2.13 are supported.
  5. If your computer is on a Virtual Private Network, or behind a firewall:
    1. Open the file, located in the Gradle user home directory and add these lines:
      The default value for the Gradle user home directory is USER_HOME/.gradle. To use a different directory, set the GRADLE_USER_HOME environment variable.
    2. Save your changes and close the file.
  6. Build the iOS libraries using an automated script:
    1. Open a terminal window and change directories to iotcs/csl/ios.
    2. Run the command gradle build to build the iOS device and enterprise client software libraries.
      To build the device and enterprise libraries individually run one of these commands:
      Command Description
      build device Builds the iOS device library. The library is created in the iotcs/csl/ios/lib/DeviceLib.framework directory.
      build enterprise Builds the iOS enterprise library. The library is created in the iotcs/csl/ios/lib/EnterpriseLib.framework directory.
  7. Build the iOS libraries using Xcode:
    1. Open Xcode, open DeviceLib.xcodeproj in the iotcs/csl/ios/src/device/DeviceLib.xcodeproj directory, and then build the project.
    2. Open Xcode, open EnterpriseLib.xcodeproj in the iotcs/csl/ios/src/enterprise/ directory, and then build the project.