Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On iOS, non-AppLovin SDKs cause ANR #56

Open
kreso22 opened this issue Sep 28, 2024 · 9 comments
Open

On iOS, non-AppLovin SDKs cause ANR #56

kreso22 opened this issue Sep 28, 2024 · 9 comments
Labels
bug Something isn't working stale This isue has been inactive

Comments

@kreso22
Copy link

kreso22 commented Sep 28, 2024

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.
  • OR -
  1. 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
@kreso22 kreso22 added the bug Something isn't working label Sep 28, 2024
@thomasmso
Copy link
Member

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

@kreso22
Copy link
Author

kreso22 commented Sep 30, 2024

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
Copy link
Author

kreso22 commented Sep 30, 2024

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
Copy link
Member

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
Copy link
Author

kreso22 commented Sep 30, 2024

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
Copy link
Author

kreso22 commented Sep 30, 2024

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
Copy link
Member

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

@kreso22
Copy link
Author

kreso22 commented Sep 30, 2024

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.

Copy link

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

@github-actions github-actions bot added the stale This isue has been inactive label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale This isue has been inactive
Projects
None yet
Development

No branches or pull requests

2 participants