iOS SDK: Getting Started

Integrating myTarget SDK for iOS

  • Minimum supported iOS version - 10.0.
  • Xcode version 12.5 or higher.

Connecting using the Swift Package Manager

To add a dependency to your Xcode project, select File > Swift Packages > Add Package Dependency and enter the repository URL: https://github.com/myTargetSDK/mytarget-ios-spm

Add the '-ObjC' flag to Other Linker Flags on the Build Settings tab of your project.

Connecting using the CocoaPods

Add a dependency to your Podfile:
pod 'myTargetSDK'
Run 'pod install'.

Manual connecting

  1. Download latest version of myTarget iOS SDK and extract archive.
  2. Include the MyTargetSDK.framework from the unpacked archive into the project.
  3. Connect the CoreLocation, CoreTelephony, CoreMedia, SystemConfiguration, StoreKit, AdSupport, SafariServices and AVFoundation frameworks to your project.
  4. Add the '-ObjC' flag to the Other Linker Flags on the Build Settings tab of your project.
  5. If you see Swift character linking errors, add an empty .swift file to your project.

Mediation

If you plan to use mediation with the Mopub SDK, you need to attach the files for the corresponding SDK to the project from our Github repository's mediation directory.

Learn more

Was this article helpful?
Yes
No