AppLovin / AppLovin-MAX-Cordova

MIT License
11 stars 13 forks source link

On iOS, non-AppLovin SDKs cause ANR #56

Closed kreso22 closed 5 hours ago

kreso22 commented 1 month ago

MAX Plugin Version

12.3.1 & 12.4.1 (either)

Cordova Version

12.0.0 (cordova-lib@12.0.1), cordova-ios 7.1.1

Device/Platform Info

iOS 18 / iOS 17.5

Crashes/ANRs per Day

1/1

Percentage of Users Affected

1/1

First Occurrence of Crash/ANR

Last updated 2 months ago, it worked then. Not sure what changed (iOS version, XCode, Google SDK, Unity SDK..).

AppLovin SDK version stayed the same.

Exception and Stack Trace

Failed to look up symbolic reference at 0x104c7528f - offset 541705 - symbol symbolic _____Sg ScP in /private/var/containers/Bundle/Application/419544DE-XXXX-XXXX-XXXX-C5A01A1BC0C7/MyApp.app/MyApp

How to Reproduce

AppLovin SDK works out of the box. Adding additional SDKs causes ANR.

1) Add AppLovinMediationGoogleAdapter pod to Podfile. Launch app, notice ANR as soon as the app boots up.

2) Add AppLovinMediationUnityAdsAdapter to Podfile Launch app, notice ANR within 2-3 seconds after app boots up.

Reproducible in the demo app?

Not Tested

Additional Info

Screenshot 2024-09-28 at 1 52 31 PM
thomasmso commented 1 month ago

@kreso22 - could you try reproducing this in the demo app and sending the project over?

kreso22 commented 1 month ago

Tried running the demo app. I see this error, trying to reference https://github.com/AppLovin/Public-CocoaPods-Specs/. I will change this to https://github.com/AppLovin/CocoaPods-Specs and try that.

Screenshot 2024-09-30 at 5 04 56 PM
kreso22 commented 1 month ago

I'm not able to build the demo app for iOS.

I am concerned if I start fixing these errors I will lose the whole point - testing in a predictable environment. Please advise.

Screenshot 2024-09-30 at 5 39 58 PM
thomasmso commented 1 month ago

If you check out our latest Corova release, it is meant to work with underlying Android and iOS SDK versions 12.3.1: https://github.com/AppLovin/AppLovin-MAX-Cordova/releases

It looks like you are using 13.0.0 which is why you're receiving those build errors. You'd have to hardcode in your CocoaPod Podfiles to use SDK version 12.3.1.

kreso22 commented 1 month ago

I updated to latest applovin-max plugin (1.1.5) and was able to build successfully (Pod 12.3.1 is now included).

Once built, I run the demo app on the device and it hangs.

Screenshot 2024-09-30 at 8 24 32 PM
kreso22 commented 1 month ago

I think I found the solution:

Change iOS Deployment Target to 15 (Build settings in Xcode).

Both the demo app, and my app build and run successfully now.

thomasmso commented 1 month ago

Our SDK's min deployment target is much lower than that, so I suspect it is another artifact in your project requiring it.

kreso22 commented 1 month ago

I understand, but I don't think so. I suspect perhaps it has to do with Xcode 16 because the demo app didn't work either.

github-actions[bot] commented 5 days ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 5 hours ago

This issue was closed because it has been inactive for 5 days since being marked as stale.