#

SUD

Quick start for iOS

1. Contact Sud.Tech to obtain appId, appKey, appSecret for your service.

2. Download the iOS SDK SudMGP.xcframework and the new Demo QuickStart-iOS, the demo project HelloSud-iOS.zip.

3. Import the SDK into the project.

In the following example, Xcode 13.0 and the HelloSud-iOS project are used, and the programming language is Objective-C.

- Copy **SudMGP.xcframework** to the **GameSDK** folder.

- Open Xcode, select **TARGETS** > **HelloSud-iOS**. Then select **Build Settings** on the right, search for **Enable Bitcode**, and set it to **No**.

- Select **TARGETS** > **HelloSud-iOS**, and then select **Build Phases**.

- Drag **SudMGP.xcframework** to **Link Binary With Libraries**.

- Select **General** and set **SudMGP.xcframework** to **Embed & Sign** in **Frameworks, Libraries, and Embedded Content**.

    The following figures show the operation steps.

    ![SUD](../Resource/Client/bitcode.png)

    ![SUD](../Resource/Client/target.png)

    ![SUD](../Resource/Client/emed.png)

4. Initialize the SudMGP. For details, see QuickStart-iOS

5. Load the game using the SudMGP. For details, see QuickStart-iOS

6. Optional: Implement ISudFSMMG to respond to the MG finite state machine (FSM). For details, see QuickStart-iOS

7. Optional: Implement ISudFSTAPP to send states from the app to the app finite state transducer (FST). For details, see QuickStart-iOS

8. Deinitialize the SudMGP. For details, see QuickStart-iOS

9. Call sequence diagram of APP Cient and SudMGP

api

results matching ""

    No results matching ""