msintuneappsdk / ms-intune-app-sdk-ios

Intune App SDK for iOS enables data protection and mobile app management features in iOS mobile apps with Microsoft Intune
84 stars 25 forks source link

App crashing on loginAndEnrollAccount cal #425

Open mahavrani opened 1 month ago

mahavrani commented 1 month ago

Describe the bug: The app is crashing on loginAndEnrollAccount.Used Option 2 (Static library approach)

Screenshot 2024-04-27 at 8 29 58 PM Screenshot 2024-04-27 at 8 29 51 PM Screenshot 2024-04-29 at 5 11 05 PM

with sample app provided with Intune

To Reproduce Steps to reproduce the behavior: Run the sample app provided bu Intune with Static library approach Option 2 integration in loginAndEnrollAccount then the app crashes.

Expected behavior: App should not crash even the framework referred from another framework.

Screenshots and logs: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/<>Library/Developer/CoreSimulator/Devices/C12954FF-809E-4931-9F46-D28AE1166868/data/Containers/Bundle/Application/50940FE0-4C6C-434E-9678-CBF88738CA2F/InforGoCoreApp.app> (loaded)' with name 'PolicyViewController_iPhone''

Smartphone (please complete the following information):

Device: [e.g. iPhone6] -iPhone XR OS: [e.g. iOS8.1] -iOS 16.5 Intune App SDK for iOS (please complete the following information):

What version of the Intune SDK are you using? Are you using the latest version? -19.3.1

What platform is your app based in (native, Xamarin based, Cordova, etc)? -native.Using chat sample app provided by Intune only.

For errors during build, does the app build without Intune SDK integration? -No

For errors post build, does the app launch without being Intune SDK integrated? -Yes

Do you see a trend with it only being reproduced on a specific device? -No

Additional context: Add any other context about the problem here.

ChismanRaheem commented 3 weeks ago

Hi @mahavrani please download and test our newest version which we added new static framework SDK variant: IntuneMAMStatic.xcframework. This variant will replace the existing static library variant (libIntuneMAMSwift.xcframework). For more information please see our https://github.com/msintuneappsdk/ms-intune-app-sdk-ios/discussions/432