Workspace ONE SDK for iOS
The Workspace ONE SDK (formerly known as AirWatch SDK) code library for Apple iOS devices can be used to enable additional app config and security capabilities that may not yet be available natively as part of the AppConfig Community. Certain use cases such as granular analytics can be provided through a deeper integration with the SDK. The Workspace ONE SDK for iOS is also a good choice in deployment scenarios where a MDM profile installation on the device is not possible.
Application Integration¶
To integrate the SDK into your app, proceed as follows.
-
Open your app project in Xcode.
-
Navigate to File, Swift Packages, Add Package Dependency...
This opens the Choose Package Repository screen.
-
Enter the address of this repository
https://github.com/euc-oss/iOS-WorkspaceONE-SDK
and click Next.This opens the Choose Package Options screen.
-
Select the rule Branch, leave the default value for branch name, and click Next.
Xcode will resolve the package dependency, which might take some time.
When resolution finishes, an Add Package screen opens.
-
Select to add the AWSDK package product to your app target and click Finish.
The SDK has now been added to your application project. You can start the integration work. See the developer documentation.
Other Integration¶
The SDK can also be integrated into products other than applications, such as frameworks and libraries. Add code like the following to your Package.swift
file.
// swift-tools-version:5.9
import PackageDescription
let package = Package(
name: "YOUR_PROJECT_NAME",
dependencies: [
.package(url: "https://github.com/euc-oss/iOS-WorkspaceONE-SDK.git", from: "24.6.0"),
]
)
Build your product in the usual way, for example by running the swift
build
command.
Documentation and Reference¶
A number of resources are available to assist developers in getting started and using this SDK. Developers should start with Workspace ONE SDK for iOS Getting Started Guide
Additional Resources and Guides¶
Sample Apps¶
A number of sample applications with code for integration of mobile applications with the Workspace ONE platform are provided in the workspace-ONE-SDK-integration-samples repository.