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

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

Open
AntoineRuf opened this issue Apr 19, 2024 · 2 comments
Assignees

Comments

@AntoineRuf
Copy link

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):

  • Device: iPhone 14
  • OS: iOS 17.4.1

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

  • Intune Wrapper 19.0.1 for iOS
  • iOS native app containing C++ and objective-C
  • App works fine without the wrapping and build without issues without the wrapping.

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 jitheshncxe self-assigned this Apr 22, 2024
@jitheshncxe
Copy link

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

AntoineRuf commented Apr 26, 2024

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.

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

2 participants