AppLovin / AppLovin-MAX-Unity-Plugin

127 stars 35 forks source link

App does not start on IOS #390

Open XaguStudios opened 5 months ago

XaguStudios commented 5 months ago

MAX Plugin Version

6.5.2

Unity Version

2020.3.30f1

Device/Platform Info

IOS

Current Behavior

Hi, We are builing for IOS and the app crashes on start. Unity builds with no errors, pods are installed with no errors. When launching from Xcode to our test device the app tries to start but crashes with this log:

2024-06-04 08:01:51.039707+0200 LCM2024[5373:3174143] [general] Error loading /var/containers/Bundle/Application/517DBB9E-C9B0-488F-B2D1-ADE4506CFAB6/LCM2024.app/Frameworks/UnityFramework.framework/UnityFramework (134): dlopen(/var/containers/Bundle/Application/517DBB9E-C9B0-488F-B2D1-ADE4506CFAB6/LCM2024.app/Frameworks/UnityFramework.framework/UnityFramework, 0x0109): Library not loaded: @rpath/AppLovinSDK.framework/AppLovinSDK

Referenced from: <48AACFB9-B145-3414-B41A-BD6BCCF08316> /private/var/containers/Bundle/Application/517DBB9E-C9B0-488F-B2D1-ADE4506CFAB6/LCM2024.app/Frameworks/UnityFramework.framework/UnityFramework

Reason: tried: '/usr/lib/swift/AppLovinSDK.framework/AppLovinSDK' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/AppLovinSDK.framework/AppLovinSDK' (no such file), '/private/var/containers/Bundle/Application/517DBB9E-C9B0-488F-B2D1-ADE4506CFAB6/LCM2024.app/Frameworks/AppLovinSDK.framework/AppLovinSDK' (no such file), '/private/var/containers/Bundle/Application/517DBB9E-C9B0-488F-B2D1-ADE4506CFAB6/LCM2024.app/Frameworks/UnityFramework.framework/Frameworks/AppLovinSDK.framework/AppLovinSDK' (no such file), '/private/var/containers/Bundle/Application/Frameworks/AppLovinSDK.framework/AppLovinSDK' (no such file), '/usr/lib/swift/AppLovinSDK.framework/AppLovinSDK' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/AppLovinSDK.framework/AppLovinSDK' (no such file), '/private/var/containers/Bundle/Application/517DBB9E-C9B0-488F-B2D1-ADE4506CFAB6/LCM2024.app/Frameworks/AppLovinSDK.framework/AppLovinSDK' (no such file), '/private/var/containers/Bundle/Application/517DBB9E-C9B0-488F-B2D1-ADE4506CFAB6/LCM2024.app/Frameworks/UnityFramework.framework/Frameworks/AppLovinSDK.framework/AppLovinSDK' (no such file), '/private/var/containers/Bundle/Application/Frameworks/AppLovinSDK.framework/AppLovinSDK' (no such file), '/private/var/containers/Bundle/Application/517DBB9E-C9B0-488F-B2D1-ADE4506CFAB6/LCM2024.app/Frameworks/AppLovinSDK.framework/AppLovinSDK' (no such file)

2024-06-04 08:01:51.105628+0200 LCM2024[5373:3174143] [general] Error loading /var/containers/Bundle/Application/517DBB9E-C9B0-488F-B2D1-ADE4506CFAB6/LCM2024.app/Frameworks/UnityFramework.framework/UnityFramework (134): dlopen(/var/containers/Bundle/Application/517DBB9E-C9B0-488F-B2D1-ADE4506CFAB6/LCM2024.app/Frameworks/UnityFramework.framework/UnityFramework, 0x0109): Library not loaded: @rpath/AppLovinSDK.framework/AppLovinSDK

Referenced from: <48AACFB9-B145-3414-B41A-BD6BCCF08316> /private/var/containers/Bundle/Application/517DBB9E-C9B0-488F-B2D1-ADE4506CFAB6/LCM2024.app/Frameworks/UnityFramework.framework/UnityFramework

Reason: tried: '/usr/lib/swift/AppLovinSDK.framework/AppLovinSDK' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/AppLovinSDK.framework/AppLovinSDK' (no such file), '/private/var/containers/Bundle/Application/517DBB9E-C9B0-488F-B2D1-ADE4506CFAB6/LCM2024.app/Frameworks/AppLovinSDK.framework/AppLovinSDK' (no such file), '/private/var/containers/Bundle/Application/517DBB9E-C9B0-488F-B2D1-ADE4506CFAB6/LCM2024.app/Frameworks/UnityFramework.framework/Frameworks/AppLovinSDK.framework/AppLovinSDK' (no such file), '/private/var/containers/Bundle/Application/Frameworks/AppLovinSDK.framework/AppLovinSDK' (no such file), '/usr/lib/swift/AppLovinSDK.framework/AppLovinSDK' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/AppLovinSDK.framework/AppLovinSDK' (no such file), '/private/var/containers/Bundle/Application/517DBB9E-C9B0-488F-B2D1-ADE4506CFAB6/LCM2024.app/Frameworks/AppLovinSDK.framework/AppLovinSDK' (no such file), '/private/var/containers/Bundle/Application/517DBB9E-C9B0-488F-B2D1-ADE4506CFAB6/LCM2024.app/Frameworks/UnityFramework.framework/Frameworks/AppLovinSDK.framework/AppLovinSDK' (no such file), '/private/var/containers/Bundle/Application/Frameworks/AppLovinSDK.framework/AppLovinSDK' (no such file), '/private/var/containers/Bundle/Application/517DBB9E-C9B0-488F-B2D1-ADE4506CFAB6/LCM2024.app/Frameworks/AppLovinSDK.framework/AppLovinSDK' (no such file)

Expected Behavior

No response

How to Reproduce

There are no extra step. Applovin plugin has worked on our previous releases. All updates are done by "Integration manager". Plugin is up to date. Pods are correctly generated, no errors.

Additional Info

No response

TranSachCo commented 5 months ago

try add ApplovinSDK.xcframework to General => Framwork , Libraries , Embedded content and rebuild.

chiragms commented 5 months ago

@XaguStudios thank you for raising this bug. Its happening with us too. This is a legitimate issue. @TranSachCo while it worked (simulator only. haven't tested it on device yet), it led to further more errors during submitting it to testflight.

Asset validation failed Invalid bundle structure. The “Frameworks/UnityFramework.framework/Frameworks/libCSJAdapter.a” binary file is not permitted. Your app cannot contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. For details, visit: https://developer.apple.com/documentation/bundleresources/placing_content_in_a_bundle (ID: 9856849c-caa1-4498-8724-5ef9ba3de8ad)

Asset validation failed Invalid Bundle. The bundle at 'Frameworks/UnityFramework.framework' contains disallowed nested bundles. (ID: a682c709-2d20-4a74-ab22-682181639e7b)

chiragms commented 5 months ago

@XaguStudios thank you for raising this bug. Its happening with us too. This is a legitimate issue. @TranSachCo while it worked (simulator only. haven't tested it on device yet), it led to further more errors during submitting it to testflight.

Asset validation failed Invalid bundle structure. The “Frameworks/UnityFramework.framework/Frameworks/libCSJAdapter.a” binary file is not permitted. Your app cannot contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. For details, visit: https://developer.apple.com/documentation/bundleresources/placing_content_in_a_bundle (ID: 9856849c-caa1-4498-8724-5ef9ba3de8ad)

Asset validation failed Invalid Bundle. The bundle at 'Frameworks/UnityFramework.framework' contains disallowed nested bundles. (ID: a682c709-2d20-4a74-ab22-682181639e7b)

UPDATE: adding the framework manually didn't work. the app still crashes. now I'm just stuck as its a blocker. going to remove the whole sdk until this is fixed.

santoshbagadi commented 5 months ago

@chiragms @XaguStudios do you mind sharing the Podfile of the exported project. Or a screen shot of the External Dependency Manager iOS Settings would also be helpful.

chiragms commented 5 months ago

@santoshbagadi apologies for the delayed response. its actually fixed.

https://forum.unity.com/threads/applovinsdk-12-4-1-changed-from-a-static-to-dynamic-library.1587963/ The last comment on the above thread was the issue. We only turned off the static library part in the podfile and it works now.

Thank anyways for participating. Appreciate it. 👍

XaguStudios commented 5 months ago

@chiragms @XaguStudios do you mind sharing the Podfile of the exported project. Or a screen shot of the External Dependency Manager iOS Settings would also be helpful.

We also used the adding the app manually workaround and it builds but we have had random crashes with applovin facebook sdk so we have deactivated it for a time because we are in a hurry. We hope the AppStore review team does not have more issues.

github-actions[bot] commented 1 week ago

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

chiragms commented 1 week ago

@chiragms @XaguStudios do you mind sharing the Podfile of the exported project. Or a screen shot of the External Dependency Manager iOS Settings would also be helpful.

We also used the adding the app manually workaround and it builds but we have had random crashes with applovin facebook sdk so we have deactivated it for a time because we are in a hurry. We hope the AppStore review team does not have more issues.

Hey sorry but we kind of stopped using any other sdk but admob as we were getting delayed for the release dates.