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

iOS app crashes on launch when including the Admob mediator #70

Open
jdtapslots opened this issue Oct 3, 2024 · 11 comments
Open

iOS app crashes on launch when including the Admob mediator #70

jdtapslots opened this issue Oct 3, 2024 · 11 comments

Comments

@jdtapslots
Copy link

Problem Description

iOS app crashes on launch. 100% reproducible.
Android works fine.
AIR SDK 51.1.1.5 Windows

Steps to Reproduce

Include the Ironsource ANE and the Admob mediator as per Distriqt docs.

<extensionID>com.distriqt.IronSource</extensionID>
<extensionID>com.distriqt.ironsource.AdMob</extensionID>

Known Workarounds

None.

@marchbold
Copy link
Contributor

Did you add your admob app id to the info additions?

This is the most common cause of a crash on launch with admob.

Check the docs for more info: https://docs.airnativeextensions.com/docs/ironsource/mediation/admob

@jdtapslots
Copy link
Author

Hi @marchbold , thanks for your prompt response.
Yes all of those settings are present
https://docs.airnativeextensions.com/docs/ironsource/mediation/admob/#ios
We've been using Ironsource and the Admob mediator for several years, and this issue is new to us after updating the ANEs to the latest available.

@marchbold
Copy link
Contributor

Okay, Could you provide the logs from the device? Hopefully I can spot the issue there.

https://docs.airnativeextensions.com/docs/tutorials/device-logs/

@jdtapslots
Copy link
Author

jdtapslots commented Oct 4, 2024

error	20:42:31.919401+0800	SpringBoard	Scene FBSceneManager/sceneID:com.[redacted]-default update failed: <NSError: 0x3077942a0; domain: FBSceneErrorDomain; code: 1 ("operation-failed"); "Scene update failed."> {
    NSUnderlyingError = <NSError: 0x307705e60; domain: BSServiceConnectionErrorDomain; code: 3 ("OperationFailed"); "XPC error received on message reply handler">;
}

@marchbold
Copy link
Contributor

Are you using the platform sdk option?

We have found that some versions of AIR seem to fail if you don't supply a version of the iOS SDK. You can do this via the adt platformsdk command line option:

https://docs.airnativeextensions.com/docs/adverts/troubleshooting#ios-sdk-issue

@jdtapslots
Copy link
Author

We were not, so tried that and get compiler errors:

     [java] [Adt]ld64: error: E:\\iPhoneOS18.0.sdk/usr/lib\libc++.tbd: unhandled file type
     [java] [Adt]ld64: error: E:\\iPhoneOS18.0.sdk/usr/lib\libz.tbd: unhandled file type
     [java] [Adt]ld64: error: E:\\iPhoneOS18.0.sdk/usr/lib\libobjc.tbd: unhandled file type
     [java] [Adt]ld64: error: library not found for -lswiftFoundation
     [java] [Adt]ld64: error: E:\\iPhoneOS18.0.sdk/usr/lib\libobjc.tbd: unhandled file type
     [java] [Adt]ld64: error: E:\\iPhoneOS18.0.sdk/usr/lib\libobjc.tbd: unhandled file type
     [java] [Adt]ld64: error: E:\\iPhoneOS18.0.sdk/usr/lib\libobjc.tbd: unhandled file type
     [java] [Adt]ld64: error: E:\\iPhoneOS18.0.sdk/usr/lib\libobjc.tbd: unhandled file type
     [java] [Adt]ld64: error: E:\\iPhoneOS18.0.sdk/usr/lib\libobjc.tbd: unhandled file type
     [java] [Adt]ld64: error: E:\\iPhoneOS18.0.sdk/usr/lib\libobjc.tbd: unhandled file type
     [java] [Adt]ld64: error: E:\\iPhoneOS18.0.sdk/usr/lib\libobjc.tbd: unhandled file type
     [java] [Adt]ld64: error: E:\\iPhoneOS18.0.sdk/usr/lib\libobjc.tbd: unhandled file type
     [java] [Adt]ld64: error: E:\\iPhoneOS18.0.sdk/usr/lib\libobjc.tbd: unhandled file type
     [java] [Adt]ld64: error: E:\\iPhoneOS18.0.sdk/usr/lib\libobjc.tbd: unhandled file type
     [java] [Adt]ld64: error: E:\\iPhoneOS18.0.sdk/usr/lib\libobjc.tbd: unhandled file type
     [java] [Adt]ld64: error: E:\\iPhoneOS18.0.sdk/usr/lib\libobjc.tbd: unhandled file type
     [java] [Adt]ld64: error: E:\\iPhoneOS18.0.sdk/usr/lib\libobjc.tbd: unhandled file type
     [java] [Adt]ld64: error: E:\\iPhoneOS18.0.sdk/usr/lib\libobjc.tbd: unhandled file type
     [java] [Adt]ld64: error: E:\\iPhoneOS18.0.sdk/usr/lib\libobjc.tbd: unhandled file type
     [java] [Adt]ld64: error: E:\\iPhoneOS18.0.sdk/usr/lib\libobjc.tbd: unhandled file type
     [java] [Adt]ld64: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)
     [java] [Adt]
     [java] [AdtE]Compilation failed while executing : ld64
     [java] Exit: 12
     [java] Package Failed
     ```

@marchbold
Copy link
Contributor

Did you try 17.5, not sure if 18.0 has been tested thoroughly yet.

@jdtapslots
Copy link
Author

Same with 17.5

     [java] [Adt]ld64: error: could not load TAPI file at E:\\iPhoneOS17.5.sdk/System/Library/Frameworks\CoreFoundation.framework\CoreFoundation.tbd: unsupported file type
     [java] [Adt]ld64: error: could not load TAPI file at E:\\iPhoneOS17.5.sdk/System/Library/Frameworks\CoreFoundation.framework\CoreFoundation.tbd: unsupported file type
     [java] [Adt]ld64: error: could not load TAPI file at E:\\iPhoneOS17.5.sdk/System/Library/Frameworks\CoreFoundation.framework\CoreFoundation.tbd: unsupported file type
     [java] [Adt]ld64: error: could not load TAPI file at E:\\iPhoneOS17.5.sdk/System/Library/Frameworks\CoreFoundation.framework\CoreFoundation.tbd: unsupported file type
     [java] [Adt]ld64: error: E:\\iPhoneOS17.5.sdk/usr/lib\libc++.tbd: unhandled file type
     [java] [Adt]ld64: error: could not load TAPI file at E:\\iPhoneOS17.5.sdk/usr/lib\libSystem.B.tbd: unsupported file type
     [java] [Adt]ld64: error: E:\\iPhoneOS17.5.sdk/usr/lib\libz.tbd: unhandled file type
     [java] [Adt]ld64: error: E:\\iPhoneOS17.5.sdk/usr/lib\libobjc.tbd: unhandled file type
     [java] [Adt]ld64: error: library not found for -lswiftFoundation
     [java] [Adt]ld64: error: could not load TAPI file at E:\\iPhoneOS17.5.sdk/System/Library/Frameworks\AVFAudio.framework\AVFAudio.tbd: unsupported file type
     [java] [Adt]ld64: error: could not load TAPI file at E:\\iPhoneOS17.5.sdk/System/Library/Frameworks\AVFoundation.framework\AVFoundation.tbd: unsupported file type
     [java] [Adt]ld64: error: could not load TAPI file at E:\\iPhoneOS17.5.sdk/System/Library/Frameworks\AudioToolbox.framework\AudioToolbox.tbd: unsupported file type
     [java] [Adt]ld64: error: could not load TAPI file at E:\\iPhoneOS17.5.sdk/System/Library/Frameworks\CFNetwork.framework\CFNetwork.tbd: unsupported file type
     [java] [Adt]ld64: error: could not load TAPI file at E:\\iPhoneOS17.5.sdk/System/Library/Frameworks\CoreAudio.framework\CoreAudio.tbd: unsupported file type
     [java] [Adt]ld64: error: could not load TAPI file at E:\\iPhoneOS17.5.sdk/System/Library/Frameworks\CoreFoundation.framework\CoreFoundation.tbd: unsupported file type
     [java] [Adt]ld64: error: could not load TAPI file at E:\\iPhoneOS17.5.sdk/System/Library/Frameworks\CoreGraphics.framework\CoreGraphics.tbd: unsupported file type
     [java] [Adt]ld64: error: could not load TAPI file at E:\\iPhoneOS17.5.sdk/System/Library/Frameworks\CoreImage.framework\CoreImage.tbd: unsupported file type
     [java] [Adt]ld64: error: could not load TAPI file at E:\\iPhoneOS17.5.sdk/System/Library/Frameworks\CoreMIDI.framework\CoreMIDI.tbd: unsupported file type
     [java] [Adt]ld64: error: could not load TAPI file at E:\\iPhoneOS17.5.sdk/System/Library/Frameworks\CoreMedia.framework\CoreMedia.tbd: unsupported file type
     [java] [Adt]ld64: error: could not load TAPI file at E:\\iPhoneOS17.5.sdk/System/Library/Frameworks\CoreText.framework\CoreText.tbd: unsupported file type
     [java] [AdtE]Compilation failed while executing : ld64
     [java] [Adt]ld64: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)
     [java] [Adt]
     [java] Exit: 12
     [java] Package Failed

@marchbold
Copy link
Contributor

Is this on macOS or Windows? I'm not sure the iOS SDK works with the linker on Windows. If you are building on Windows you'll need to use the previous release of AdMob or wait updates for the AIR SDK.

@mrfrasier
Copy link

Had the same issue on Windows today. Was going to switch over to trying to build on Mac again, but tried downgrading AdMob to 2.2.0 and that fixed the crashing.

Does always seem to be that adapter causing issues haha

@marchbold
Copy link
Contributor

Yeah agreed, Google are probably more active in integrating the latest SDK functionality and it can cause issues if you aren't linking against the latest iOS SDK. In our experience so far using the platformsdk option has resolved all these issues however.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants