To generate the project in XCode, click File and then Build Settings
You will see a screen with different platforms. Select iOS and then click Switch Platform button (bottom left)
Click Build button, which will generate your Project in XCode.
Open your project's Podfile and add this line to your app's target build configuration:
pod 'TappxSDK'In a terminal, run:
pod install --repo-updateIf you're new to CocoaPods, see their official documentation for info on how to create and use Podfiles.
The Tappx SDK supports Swift Package Manager starting in version 9.0.0. Follow these steps to import the Swift package:
Note: If migrating from a CocoaPods-based project, run pod deintegrate to remove CocoaPods from your Xcode project. The CocoaPods-generated .xcworkspace file can safely be deleted afterward. If you're adding the Tappx SDK to a project for the first time, this step can be ignored.
In Xcode, install the Tappx SDK Swift Package by navigating to File > Add Packages....
In the prompt that appears, search for the Tappx SDK Swift Package GitHub repository:
https://github.com/tappx-com/TappxSDK-swift-package-manager.gitSelect the version of the Tappx SDK Swift Package you want to use. For new projects, we recommend using the Up to Next Major Version.
Once you're finished, Xcode will begin resolving your package dependencies and downloading them in the background. For more details on how to add package dependencies, see Apple's article.
Download the latest version of the SDK:
Download latest Tappx SDKDrag the "TappxFramework.framework" and "OMSDK_Tappx.xcframework" files inside the Xcode Project Frameworks folder.
Once it’s done, in the options screen check the options as in the below screenshot and click finish:
Go to “Frameworks, Libraries, and Embedded Content” and make sure that the “embed” value for each added Tappx framework library is set to Embed & Sign.
Go to Build Settings in your project and add the -ObjC linker flag to “Other Linker Flags”
In order to prevent your application being affected by the new measures implemented by Apple, add the following lines to your “Info.plist” file:
If you want to learn more about this aspect, see App Transport Security (ATS).