Get started with the iOS SDK
The Adjust iOS SDK enables you to track attribution, events, and much more in your iOS app. Follow the steps in this guide to set up your app to work with the Adjust SDK. You can also check out our example apps on GitHub.
To start using the Adjust SDK, you will first need to add it to your project as a dependency.
The Adjust SDK is able to get extra information when you include certain iOS frameworks in your app. Adding frameworks and marking them as optional enables additional features in the Adjust SDK.
Once you've added all necessary frameworks, you can initialize the Adjust SDK within your application. To do this, initialize your ADJConfig object with your app token and the environment you want to run your application in.
ADJEnvironmentSandbox. Change this to
ADJEnvironmentProduction before you submit your application to the App Store.
allowSuppressLogLevel to true in your
ADJConfig instance and call the
setLogLevel method with the value
To set the verbosity of logging, use the
logLevel property in your
ADJConfig instance. You need to do this before calling
appDidLaunch for it to take effect.
Well done! You should now be able to build and run your app. Enable logging to check for any issues. You are ready to start attributing your users with the Adjust SDK.