--- title: "Integrate Whatfix Mobile SDK with iOS" slug: "integrate-whatfix-mobile-sdk-with-ios" updated: 2026-08-06T15:34:25Z published: 2026-08-06T15:34:25Z canonical: "support.whatfix.com/integrate-whatfix-mobile-sdk-with-ios" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.whatfix.com/llms.txt > Use this file to discover all available pages before exploring further. # Integrate Whatfix Mobile SDK with iOS To create Whatfix Mobile in-app experiences on your iOS apps, you need to first set up Whatfix Mobile. You can add the Whatfix Mobile SDK provided for iOS devices to the source code of your app and then create and publish content. - [Prerequisites](/mobile/docs/integrate-whatfix-mobile-sdk-with-ios#prereq) - [Integration steps for iOS app](/mobile/docs/integrate-whatfix-mobile-sdk-with-ios#ios) ### Prerequisites - API Key - The minimum deployment target of the Whatfix Mobile SDK is iOS 11. Whatfix Mobile works only for devices running on iOS 11 and above. - To identify views accurately, you have to [tag views](/mobile/docs/how-to-tag-views). - [Xcode](https://developer.apple.com/xcode/) ### Integration steps for iOS Use the following steps to integrate the Whatfix Mobile SDK with your iOS project: Info Ensure that you complete both the steps, to create and test the in-app experience in your integrated build. #### Step 1: Integrate Whatfix Mobile SDK **a.** **Add the Whatfix Mobile SDK as a library from dependency managers suitable to your project.** Expand the accordions for more details. Cocoapods Add the following line in your Podfile and run the command pod install in Terminal. ``` pod 'LeapCoreSDK', '~> 2.2.11' pod 'LeapSDK', '~> 2.2.11' ``` Manually Download the following frameworks: 1. [leap-ios](https://github.com/Leap-Platform/leap-ios) 2. [leap-creator-ios](https://github.com/Leap-Platform/leap-creator-ios) Add both of these frameworks to your app target's Frameworks, Libraries and, Embedded Content. You also need to add [GzipSwift](https://github.com/1024jp/GzipSwift) as a swift package to the app target. Swift Package Manager For more information, see [leap-ios](https://github.com/Leap-Platform/leap-ios). **b.** **Start the Whatfix Mobile SDK** Call the following method to start the Whatfix Mobile SDK (Preferably in the application(_:didFinishLaunchingWithOptions:) method in the AppDelegateclass): Swift ``` import LeapCreatorSDK class AppDelegate:UIResponder, UIApplicaitonDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { Leap.shared.start("")        return true } } ``` Objective C ``` #import @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [[Leap shared] start:@""]; return YES; } @end ``` #### Step 2: Enable the Creator Mode in your app To create in-app experiences in the Whatfix Mobile Studio, you have to enable the **Creator mode** in your app. This is done by integrating the Whatfix Mobile Creator SDK.          Info:           - The Whatfix Mobile Creator SDK must be removed before the app goes live on the App Store. - While both Whatfix Mobile Creator SDK and Whatfix Mobile SDK need to be integrated in the development and testing versions, the production version should only have the Whatfix Mobile SDK. **a. Add LeapCreatorSDK as a library from dependency managers suitable to your project** Expand the accordions for more details. Cocoapods Add the following line in your Podfile and run the command pod install in terminal. ``` pod 'LeapCreatorSDK', '~> 2.2.11' ``` Manually Download the [Leap Creator framework](https://github.com/Leap-Platform/leap-creator-ios.git). Add the framework to your app target's Frameworks, Libraries And Embedded Content. You also need to add the [Starscream WebSocket](https://github.com/daltoniam/Starscream.git) as a swift package to the app target. Swift Package Manager ``` https://github.com/Leap-Platform/leap-creator-ios ``` **b. Start the Whatfix Mobile Creator SDK** Call the following method to start the Whatfix Mobile SDK. (Preferably in the application(_:didFinishLaunchingWithOptions:) method in AppDelegate class). Swift ``` import LeapCreatorSDK class AppDelegate:UIResponder, UIApplicaitonDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { LeapCreator.shared.start("")        return true } } ``` Objective C ```   #import @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {   [[LeapCreator shared] start:@""];   return YES; } @end   ```         After integrating the code, you can start creating your in-app experience using Whatfix Mobile.          Info:           - For more information on setting up Whatfix Mobile calls, see [Setup Whatfix Mobile Callbacks](/mobile/docs/setup-whatfix-mobile-callbacks). - For more information on segmentation, see [Add Custom Properties to User Segments](/mobile/docs/add-custom-properties-to-user-segments). ## Related - [Add an App to your Dashboard](/create-a-project.md) - [Create a Project](/create-a-project-1.md) - [How to connect to the Sample App](/how-to-connect-to-the-sample-app.md)