Initialize an Adrop shared instance in your app delegate's application(_:didFinishLaunchingWithOptions:) method:
importUIKitimportAdropAds@UIApplicationMainclassAppDelegate:UIResponder, UIApplicationDelegate {var window: UIWindow?funcapplication(_application: UIApplication,didFinishLaunchingWithOptionslaunchOptions: [UIApplicationLaunchOptionsKey:Any]?) ->Bool {// true for production// If you are using this SDK in specific countries, // pass an array of ISO 3166 alpha-2 country codes. Adrop.initialize(production:false, targetCountries: [])returntrue }}
importSwiftUIimportAdropAdsclassAppDelegate:NSObject, UIApplicationDelegate {funcapplication(_application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
// true for production // If you are using this SDK in specific countries, // pass an array of ISO 3166 alpha-2 country codes. Adrop.initialize(production: false, targetCountries: [])returntrue }}@mainstructYourApp:App { // register app delegate for Adrop setup @UIApplicationDelegateAdaptor(AppDelegate.self)var delegate var body: some Scene {  WindowGroup {   NavigationView {    ContentView()   }  } }}
// AppDelegate.m
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
[Adrop initializeWithProduction:NO targetCountries:@[]];
return YES;
}
When production is false, you can check error logs.