Mobile SDK GitHub Repositories
You don’t have to sign up for GitHub to access the Mobile SDK, but it’s a good idea to join this social coding community. https://github.com/forcedotcom
Cloning the Mobile SDK for iOS GitHub Repository (Optional)
Many tools exist for cloning and managing local GitHub repos. The following instructions show three popular ways to clone Mobile SDK plus an important post-clone installation step.
- Clone the repo. For example, you can use one of the following options.
- Command line:
- In the OS X Terminal app, use the git
command, which is installed with Xcode:
git clone git://github.com/forcedotcom/SalesforceMobileSDK-iOS.git
- In the OS X Terminal app, use the git
command, which is installed with Xcode:
- Xcode:
- Select .
- For Save As, accept the default or type a custom directory name.
- For Where, choose a convenient parent directory.
- Click Clone.
- GitHub Desktop for Mac (https://desktop.github.com/):
- Click Clone a Repository from the Internet.
- Click URL.
- For Repository URL or GitHub username and repository, type https://github.com/forcedotcom/SalesforceMobileSDK-iOS.
- Set Local Path to a destination of your choice.
- Click Clone.
- Command line:
- In the OS X Terminal app, change to the directory in which you cloned the repo (SalesforceMobileSDK-iOS by default).
- Run the install script from the command line: ./install.sh
Cloning the Mobile SDK for Android GitHub Repository (Optional)
- In your browser, navigate to the Mobile SDK for Android GitHub repository: https://github.com/forcedotcom/SalesforceMobileSDK-Android.
- Clone the repository to your local file system by issuing the following command:
git clone git://github.com/forcedotcom/SalesforceMobileSDK-Android.git - Open a terminal prompt or command window in the directory where you installed the cloned repository.
- Run ./install.sh on Mac, or cscript install.vbs on Windows
Creating Android Projects with the Cloned GitHub Repository
To create native and hybrid projects with the cloned SalesforceMobileSDK-Android repository, follow the instructions in native/README.md and hybrid/README.md files.
Creating iOS Projects with the Cloned GitHub Repository
To create projects with the cloned SalesforceMobileSDK-iOS repository, follow the instructions in the repository’s readme.md file.
