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

App does not start on IOS #390

Open
XaguStudios opened this issue Jun 4, 2024 · 8 comments
Open

App does not start on IOS #390

XaguStudios opened this issue Jun 4, 2024 · 8 comments
Labels
bug Something isn't working stale This isue has been inactive

Comments

@XaguStudios
Copy link

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

@XaguStudios XaguStudios added the bug Something isn't working label Jun 4, 2024
@TranSachCo
Copy link

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

@chiragms
Copy link

chiragms commented Jun 5, 2024

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

chiragms commented Jun 5, 2024

@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
Copy link
Contributor

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

chiragms commented Jun 11, 2024

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

@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.

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
@chiragms
Copy link

@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.

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

4 participants