You have arrived at the source repository for the Hybrid library of the Salesforce Mobile SDK on iOS. Welcome!
- If you'd like to work with the source code of the SDK itself, you've come to the right place! You can browse sample app source code and debug down through the layers to get a feel for how everything works under the covers. Read on for instructions on how to get started with the SDK in your development environment.
- If you're just eager to start developing your own new application, the quickest way is to use our npm binary distribution package, called forcehybrid, which is hosted on npmjs.org. Getting started is as simple as installing the npm package and launching your template app. You'll find more details on the forcehybrid package page.
Working with this repository requires working with git. Any workflow that leaves you with a functioning git clone of this repository should set you up for success. Downloading the ZIP file from GitHub, on the other hand, is likely to put you at a dead end.
First, clone the repo:
- Open the Terminal App
cd
to the parent directory where the repo directory will livegit clone https://github.com/forcedotcom/SalesforceMobileSDK-iOS-Hybrid.git
After cloning the repo:
cd SalesforceMobileSDK-iOS-Hybrid
./install.sh
This script pulls the submodule dependencies from GitHub, to finalize setup of the workspace. You can then work with the Mobile SDK by opening SalesforceMobileSDK-Hybrid.xcworkspace
from Xcode.
The Salesforce Mobile SDK for iOS requires iOS 11.0 or greater. The install.sh script checks for this, and aborts if the configured SDK version is incorrect. Building from the command line has been tested using ant 1.8. Older versions might work, but we recommend using the latest version of ant.
Version Updates
- Cordova for iOS: 5.0.0
- SQLCipher: 4.0.1
- Salesforce Mobile SDK Development Guide -- PDF | HTML
- Mobile SDK Trail
If you would like to make suggestions, have questions, or encounter any issues, we'd love to hear from you. Post any feedback you have on Salesforce StackExchange.