--- title: "Whatfix Mobile SDK mit iOS integrieren" slug: "integrate-whatfix-mobile-sdk-with-ios" updated: 2024-08-26T06:53:36Z published: 2024-08-26T06:53:36Z 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. # Whatfix Mobile SDK mit iOS integrieren Um Whatfix Mobile in-App-Erlebnisse in Ihren iOS-Apps zu erstellen, müssen Sie zuerst Whatfix Mobile einrichten. Sie können das Whatfix Mobile SDK für iOS-Geräte zum Quellcode Ihrer App hinzufügen und dann Inhalt erstellen und veröffentlichen. - [Voraussetzungen](/mobile/docs/de/integrate-whatfix-mobile-sdk-with-ios#prereq) - [Integrationsschritte für iOS-App](/mobile/docs/de/integrate-whatfix-mobile-sdk-with-ios#ios) ### Voraussetzungen - API-Key - Das minimale Bereitstellungsziel des Whatfix Mobile SDK ist iOS 10. Aber Whatfix Mobile funktioniert nur für Geräte, die auf iOS 11 oder höher laufen. - Um Ansichten genau zu identifizieren, müssen Sie die [Ansichten taggen](/mobile/docs/de/how-to-tag-views). - [Xcode](https://developer.apple.com/xcode/) ### Integrationsschritte für iOS Verwenden Sie die folgenden Schritte, um das Whatfix Mobile SDK in Ihr iOS-Projekt zu integrieren: your title goes here Vergewissern Sie sich, dass Sie beide Schritte ausführen, um das In-App-Erlebnis in Ihrem integrierten Build zu erstellen und zu testen. #### Schritt 1: Whatfix Mobile SDK integrieren **a.** **Fügen Sie das Whatfix Mobile SDK als Bibliothek aus Abhängigkeitsmanagern hinzu, die für Ihr Projekt geeignet sind.** Cocoapods Fügen Sie die folgende Zeile in Ihre Profil hinzu und führen Sie Pod installieren aus Manuell Laden Sie die folgenden Frameworks herunter: 1. [leap-ios](https://github.com/Leap-Platform/leap-ios) 2. [leap-core-ios](https://github.com/Leap-Platform/leap-core-ios) Fügen Sie beide dieser Frameworks zum Ziel Ihres App hinzufügen Frameworks, Libraries and, Embedded Content. Sie müssen auch [GzipSwift](https://github.com/1024jp/GzipSwift) als ein Swift-Paket zum Ziel der App hinzufügen. Swift-Paket-Manager Für weitere Informationen sehen Sie [leap-ios](https://github.com/Leap-Platform/leap-ios). **b.** **Starten Sie das Whatfix Mobile SDK** Rufen Sie die folgende Methode auf, um das Whatfix Mobile SDK zu starten (am besten in der application(_:didFinishLaunchingWithOptions:)-Methode in der AppDelegate-Klasse): Swift ``` Import LeapCreatorSDK Klasse AppDelegiert:UIResponder, UIApplicaitonDelegate { func application(_ Anwendung: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { LeapCreator.shared.start("") return true } } ``` Objective-C ``` #import @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [[Leap shared] start:@""]; return YES; } @end ``` #### Schritt 2: Aktivieren Sie den Creator-Modus in Ihrer App Um in-App-Erlebnisse im Whatfix Mobile Studio zu erstellen, müssen Sie den **Creator-Modus** in Ihrer App aktivieren. Dies wird durch die Integration des Whatfix Mobile Creator SDKs erreicht. your title goes here - Der Whatfix Mobile Creator SDK muss entfernt werden, bevor die App im App Store veröffentlicht wird. - Während sowohl Whatfix Mobile Creator SDK als auch Whatfix Mobile SDK in den Entwicklungs- und Testversionen integriert werden müssen, sollte die Produktionsversion nur das Whatfix Mobile SDK enthalten. **a. Fügen Sie LeapCreatorSDK als Bibliothek aus Abhängigkeitsmanagern hinzu, die für Ihr Projekt geeignet sind** Cocoapods Fügen Sie die folgende Zeile in Ihre Profil hinzu und führen Sie Pod installieren aus Manuell Laden Sie das [Leap Creator Framework](https://github.com/Leap-Platform/leap-creator-ios.git). Fügen Sie das Framework zum Ziel Ihrer App hinzu Frameworks, Libraries und eingebettete Inhalte. Sie müssen auch [Starscream WebSocket](https://github.com/daltoniam/Starscream.git) als ein Swift-Paket zum Ziel der App hinzufügen. Swift-Paket-Manager ``` https://github.com/Leap-Platform/leap-creator-ios ``` **b. Starten Sie den Whatfix Mobile Creator SDK** Rufen Sie die folgende Methode auf, um den Whatfix Mobile SDK zu starten. (Vorzugsweise in der application(_:didFinishLaunchingWithOptions:) Methode in der AppDelegate Klasse). 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 { [[Leap shared] start:@""]; return YES; } @end ```

Nachdem Sie den Code integriert haben, können Sie mit Whatfix Mobile Ihr In-App-Erlebnis starten. :::(Info) (your title goes here) * Für weitere Informationen zur Einrichtung von Whatfix Mobile-Anrufen, sehen Sie [Whatfix Mobile Callbacks einstellen](/mobile/docs/de/setup-whatfix-mobile-callbacks){target="_blank"}. * Für weitere Informationen zur Segmentierung sehen Sie [Benutzerdefinierten Eigenschaften zu Benutzersegmenten hinzufügen](/mobile/docs/de/add-custom-properties-to-user-segments){target="_blank"}. ::: ``` ## Related - [App zu Ihrem Dashboard hinzufügen](/create-a-project.md) - [Ein Projekt erstellen](/create-a-project-1.md) - [Wie man sich mit der Sample-App verbindet](/how-to-connect-to-the-sample-app.md)