Newer Version Available

This content describes an older version of this product. View Latest

Clone and Import Gamification Mobile SDK for iOS

Clone the Gamification Mobile iOS SDK GitHub repository to copy the code base and revision history of the repository to your local computer. After you clone the repository, import Gamification Mobile iOS SDK in an Xcode project.
Available in: all editions that have Loyalty Management enabled

  1. Go to the Gamification Mobile SDK iOS repository.
  2. To copy the repository URL to your clipboard, click Code, and then click Copy to Clipboard icon on Git Hub.
  3. Open Terminal, and go to the directory where you want to clone the repository.
  4. Enter git clone https://github.com/loyaltysampleapp/GamificationMobileSDK-iOS.
  5. Press Enter and wait for the repository to clone.
  6. Open the project where you want to import GamificationMobileSDK-iOS in Xcode.
  7. Go to File | Swift Packages | Add Package Dependency.
  8. Click Add Local, and then select the local GamificationMobileSDK-iOS folder.
  9. Select a version, and click Add Package and on the confirmation window, click Add Package.
  10. To import the GamificationMobileSDK-iOS module into your Swift file, open the swift file where you want to use GamificationMobileSDK-iOS, and to the first line of code, add:
    import GamificationMobileSDK-iOS
You can now use the classes, structures, and protocols in the GamificationMobileSDK-iOS module to manage and customize the gamification features in your mobile application.