Hello everyone,
I am trying to make Test Ads work on iOS but getting a crash as soon as the IronSource SDK Initializes. It happens every time.
My environment:
Unity 2022.3.28f1
LevelPlay Mediation 8.0.0
Networks: for now I only have IronSource 8.0.0 and UnityAds version 4.3.43.0
XCode 15.2 on MacOS Ventura (Mac Mini 2020 M1)
For Android I had an Android Resolver error on build (“unable to find jar in the system path”). I solved this by installing the External Dependency Manager and setting it up as instructed by user jacobfdunbar in this thread: Issue with the Ironsource demo project
Test Interstitial and Rewarded ads run fine on Android at Internal Testing phase, but for some reason I can only get ONE Rewarded Ad per session, any more will be unavailable until I restart the app.
For IOS, in XCode when building there was a “IronSource.h not found” error at first. From the Unity menu I tried Assets → External Dependency Manager → iOSResolver → Install Cocoapods, but clicking on it does nothing.
I instead downloaded the IronSource SDK (IronSource8.0.0.zip) and copied its IronSource.xcframework folder under the Assets/Plugins/iOS folder that I had created. Also downloaded IronSourceAdQualitySDK-ios-v7.19.2.zip and copied its IronSourceAdQualitySDK.xcframework and Resources folder at the same location. Now the build worked.
info.plist file is configured with the SKAdNetworkItems array of IronSource and UnityAds networks.
Below is the crash log from TestFlight. Any help appreciated:
OS Version: iPhone OS 16.7.4 (20H240)
Release Type: User
Baseband Version: 6.01.01
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: SIGNAL 6 Abort trap: 6
Terminating Process: MyGame [31648]
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x1b26b140c __exceptionPreprocess + 160 (NSException.m:202)
1 libobjc.A.dylib 0x1ab98dc28 objc_exception_throw + 56 (objc-exception.mm:356)
2 CoreFoundation 0x1b2812350 +[NSObject(NSObject) doesNotRecognizeSelector:] + 132 (NSObject.m:133)
3 CoreFoundation 0x1b26c68b8 forwarding + 1340 (NSForwarding.m:3590)
4 CoreFoundation 0x1b27288fc _CF_forwarding_prep_0 + 92 :)-1)
5 UnityFramework 0x1097c050c -[ISNAppOrientationHolder updateAppOrientation] + 196
6 UnityFramework 0x10981ea44 __71-[IronSourceSdk initWithAppKey:adUnits:internal:isDemandOnly:delegate:]_block_invoke + 40
7 libdispatch.dylib 0x1b94557a8 _dispatch_call_block_and_release + 24 (init.c:1518)
8 libdispatch.dylib 0x1b9456780 _dispatch_client_callout + 16 (object.m:560)
9 libdispatch.dylib 0x1b9437e10 _dispatch_main_queue_drain + 888 (queue.c:7794)
10 libdispatch.dylib 0x1b9437a88 _dispatch_main_queue_callback_4CF$VARIANT$armv81 + 36 (queue.c:7954)
11 CoreFoundation 0x1b27399ac CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 12 (CFRunLoop.c:1780)
12 CoreFoundation 0x1b271d648 __CFRunLoopRun + 2080 (CFRunLoop.c:3147)
13 CoreFoundation 0x1b2721d20 CFRunLoopRunSpecific + 584 (CFRunLoop.c:3418)
14 GraphicsServices 0x1ea7ed998 GSEventRunModal + 160 (GSEvent.c:2196)
15 UIKitCore 0x1b49b480c -[UIApplication _run] + 868 (UIApplication.m:3782)
16 UIKitCore 0x1b49b4484 UIApplicationMain + 312 (UIApplication.m:5372)
17 UnityFramework 0x1088db85c -[UnityFramework runUIApplicationMainWithArgc:argv:] + 92 (main.mm:96)
18 MyGame 0x102fd812c main + 60 (main.mm:26)
19 dyld 0x1cfed8344 start + 1860 (dyldMain.cpp:1165)
Thread 0 name:
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001edece198 __pthread_kill + 8 :)-1)
1 libsystem_pthread.dylib 0x00000001fd4595f8 pthread_kill + 208 (pthread.c:1670)
2 libsystem_c.dylib 0x00000001b95184b8 abort + 124 (abort.c:118)
3 libc++abi.dylib 0x00000001fd392f54 abort_message + 128 :)-1)
4 libc++abi.dylib 0x00000001fd383a4c demangling_terminate_handler() + 300 :)-1)
5 libobjc.A.dylib 0x00000001ab992afc _objc_terminate() + 124 (objc-exception.mm:498)
6 libc++abi.dylib 0x00000001fd392424 std::__terminate(void (*)()) + 12 :)-1)
7 libc++abi.dylib 0x00000001fd3923d4 std::terminate() + 52 :)-1)
8 libdispatch.dylib 0x00000001b9456794 _dispatch_client_callout + 36 (object.m:563)
9 libdispatch.dylib 0x00000001b9437e10 _dispatch_main_queue_drain + 888 (queue.c:7794)
10 libdispatch.dylib 0x00000001b9437a88 _dispatch_main_queue_callback_4CF$VARIANT$armv81 + 36 (queue.c:7954)
11 CoreFoundation 0x00000001b27399ac CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 12 (CFRunLoop.c:1780)
12 CoreFoundation 0x00000001b271d648 __CFRunLoopRun + 2080 (CFRunLoop.c:3147)
13 CoreFoundation 0x00000001b2721d20 CFRunLoopRunSpecific + 584 (CFRunLoop.c:3418)
14 GraphicsServices 0x00000001ea7ed998 GSEventRunModal + 160 (GSEvent.c:2196)
15 UIKitCore 0x00000001b49b480c -[UIApplication _run] + 868 (UIApplication.m:3782)
16 UIKitCore 0x00000001b49b4484 UIApplicationMain + 312 (UIApplication.m:5372)
17 UnityFramework 0x00000001088db85c -[UnityFramework runUIApplicationMainWithArgc:argv:] + 92 (main.mm:96)
18 MyGame 0x0000000102fd812c main + 60 (main.mm:26)
19 dyld 0x00000001cfed8344 start + 1860 (dyldMain.cpp:1165)
Thread 1:
0 libsystem_pthread.dylib 0x00000001fd44d718 start_wqthread + 0 :)-1)
Thread 2:
0 libsystem_pthread.dylib 0x00000001fd44d718 start_wqthread + 0 :)-1)
Thread 3:
0 libsystem_pthread.dylib 0x00000001fd44d718 start_wqthread + 0 :)-1)
Thread 4:
0 libsystem_pthread.dylib 0x00000001fd44d718 start_wqthread + 0 :)-1)
…
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x00000001fd3964ff x5: 0x000000016ce2a6b0 x6: 0x000000000000006e x7: 0x0000000001006100
x8: 0x000000020d5ecac0 x9: 0x18620924405f660d x10: 0x0000000000000200 x11: 0x000000000000000b
x12: 0x000000000000000b x13: 0x00000000001ff800 x14: 0x00000000000007fb x15: 0x00000000c2e0906e
x16: 0x0000000000000148 x17: 0x00000000c2e0906e x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x0000000000000103 x21: 0x000000020d5ecba0 x22: 0x000000028013e440 x23: 0x0000000000000000
x24: 0x000000028013e440 x25: 0x000000020d5ecba0 x26: 0x000000000000000f x27: 0x0000000000000000
x28: 0x0000000000000114 fp: 0x000000016ce2a620 lr: 0x00000001fd4595f8
sp: 0x000000016ce2a600 pc: 0x00000001edece198 cpsr: 0x40000000
esr: 0x56000080 Address size fault