microsoftconnect / intune-app-wrapping-tool-ios

This is the software for the Intune App Wrapping Tool for iOS.
55 stars 12 forks source link

Application crashing due to IntuneMAMSwiftStub being referenced in the wrong path #114

Open AntoineRuf opened 6 months ago

AntoineRuf commented 6 months ago

Describe the bug: App can't launch and crashes on startup due to a library not found. The reference to the library seems to be an incorrect path.

To Reproduce Steps to reproduce the behavior:

  1. Using the wrapping kit version 19.0.1 for an iOS application, wrap a version of the application. Wrapping occurs correctly and with no error observed.
  2. On deployment and launch on a device, through the Intune company portal (app declared as an LOB application, corresponding identity created in Microsoft Entra), the app crashes on startup. Logs are attached.

Expected behavior: The app should launch correctly and ask for authentication for the user.

Screenshots and logs: ASI found [dyld] (sensitive) 'Library not loaded: @rpath/IntuneMAMSwiftStub.framework/IntuneMAMSwiftStub Referenced from: <470CD681-A54E-3091-9E5E-F21B8E7F4E27> /private/var/containers/Bundle/Application/A927063D-2E52-4614-AB4B-A826390ED700/{APPLICATION}/Frameworks/IntuneMAMSwift.framework/IntuneMAMSwift Reason: tried: '/private/var/containers/Bundle/Application/A927063D-2E52-4614-AB4B-A826390ED700/{APPLICATION}/Frameworks/IntuneMAMSwift.framework/Frameworks/IntuneMAMSwiftStub.framework/IntuneMAMSwiftStub' (no such file)'

Application anonymized due to company concerns.

Smartphone (please complete the following information):

Intune app wrapping tool (please complete the following information):

Additional context: The app does not have an Xcode project attached, the application is compiled through makefiles and the XTools. The required library mentionned in the dyld (IntuneMAMSwiftStub) is located in /private/var/containers/Bundle/Application/A927063D-2E52-4614-AB4B-A826390ED700/{APPLICATION}/Frameworks/ in the application package.

jitheshncxe commented 6 months ago

@AntoineRuf, do you know if this issue happens only with one specific app or other similar apps in your environment as well? At any rate, can you please re-wrap the application with the latest version of wrapping tool available (19.2) and see if it helps fixing the issue? You may follow the steps described on https://learn.microsoft.com/en-us/mem/intune/developer/app-wrapper-prepare-ios to verify all the prerequisites are met for successful wrapping of the application as well.

AntoineRuf commented 6 months ago

Just noticed your comment, thank you for your response. I'll update my wrapping tool and keep you appraised of my results. Re-reading the requirements, I don't see a place where I did something wrong, but I'll follow the steps again and keep you posted.