InMobi iOS SDK now officially supports installation via Swift Package Manager.
- iOS 12.0+
- Xcode 16 or later (Swift tools 5.3+)
To install InMobiSDK using Swift Package Manager you can follow the tutorial published by Apple using the URL for this repository with the current version:
- In Xcode, select “File” → “Add Package Dependencies...”
- Enter
https://github.com/InMobi/InMobiSDK-Swift-Package.
Alternatively, you can add the following dependency to your Package.swift file:
dependencies: [
.package(url: "https://github.com/InMobi/InMobiSDK-Swift-Package", .upToNextMajor(from: "11.2.0"))
]Enable the -ObjC flag in Xcode: click on your project settings, go to Build Settings, search for Other Linker Flags and add -ObjC.
By integrating the InMobi-iOS-SDK, you agree to comply and be bound by the End-User License Agreement for InMobi Software Product.
For SDK integration steps (initialization, consent, ad formats), refer to the official InMobi iOS SDK documentation.