Install the iOS SDK
To get started, install the SDK and then update some of the properties in your project.
You can install the SDK using CocoaPods, or you can download and install the frameworks manually.
If you haven't already done so, install the CocoaPods gem, and initialize the CocoaPods main repository.
If you already have CocoaPods installed, update your pods to the latest version.
To create a Podfile, change to the root directory of your application project. Then create or edit the file named Podfile.
Add the following lines to your project's Podfile. The Agentforce SDK podspec will pull in additional dependencies as needed.
At the top of your Podfile
, add the Salesforce Mobile iOS Spec Repo above the CocoaPods trunk repo. Make sure to add the CocoaPods CDN if you use any other CocoaPods dependencies.
Then, in your target, add:
At the bottom of your podfile where you set up your post installer, configure it as shown:
After adding the pods, run pod install
from your project's root directory. If CocoaPods is unable to locate the specs, try pod install --repo-update
.
The AgentforceSDK includes the following key dependencies:
- AgentforceMobileService-iOS: The API layer for Agentforce.
- SalesforceNetwork: An interface for consuming applications to provide a networking layer to Agentforce Mobile SDK.
- SalesforceNavigation: An interface for consuming applications to handle navigation events occurring within Agentforce Mobile SDK views.
- SalesforceUser: A designated way to provide user information to Agentforce Mobile SDK.
- SalesforceLogging: An interface for consuming applications to handle logging from within Agentforce Mobile SDK.
- Swift-Markdown-UI: A rendering library for GitHub Flavored Markdown.
- Integration: See Integration Guide for implementation
- Requirements: Review Requirements if you encounter issues