MAUI App UI Elements disappear on iOS when Instabug is initialized
See original GitHub issueDescription
Hi team,
This is David, a Cross-Platform Mobile Engineer at Instabug.
We’re considering adding .NET MAUI support to our SDK but are encountering an issue that’s a blocker. Whenever Instabug SDK is initialized, all UI elements (e.g. icon, button) of the app disappear except for the top navigation bar. This was observed only on iOS and works well on Android. Screen recordings from both platforms are attached below:
A few points that may help narrow down the root cause:
- This behaviour happens regardless of the invocation event(s) used to initialize Instabug (e.g.
FloatingButton,Shakeor evenNone). - It’s not related to where the SDK gets initialized in the app lifecycle; if it’s done after
InitializeComponentis called inApp.xaml.csor inside AppDelegate’sFinishedLaunchingmethod, the app starts without the UI elements right from the beginning. If the initialization code is moved to be executed on a button click, the UI elements first appear normally, and once the button is clicked, they disappear (like the screen recording shared earlier).
Kindly check the following screenshots as well that illustrate the app view hierarchy before and after Instabug gets initialized:
Another issue is that we’re not able to run the app on the simulator; it crashes with the following error:
error HE0042: Could not launch the app 'com.companyname.InstabugMAUIExample' on the device 'iOS 15.5 (19F70) - iPhone 13 Pro': Application launch for 'com.companyname.InstabugMAUIExample' did not return a valid pid nor a launch error.
It runs, however, on a physical device (with the UI issue of course).
Your assistance is appreciated!
Steps to Reproduce
- Clone the project from the public repo below
- Build
Instabug.iOS.BindingandInstabug.MAUIprojects - Run
Instabug.MAUI.Exampleproject on iOS - Click “Click me” button
Expected outcome: Instabug floating button appears and the app UI elements stay. Actual outcome: Instabug floating button appears and the app UI elements disappear.
Link to public reproduction project repository
https://github.com/DavidMina96/IBG-Maui
Version with bug
6.0.312
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
Tried on iOS 15 (could be the same on other versions too)
Did you find any workaround?
No
Relevant log output
No response
Issue Analytics
- State:
- Created 10 months ago
- Reactions:1
- Comments:6 (2 by maintainers)

Top Related StackOverflow Question
Any updates on this issue please? I’m not sure why it’s closed even though it’s occurring on net7.0 as well. Please let us know if we shall reach out to a different support channel - or even join a debug call - to expedite things.
Can you please open a new bug related with the simulator issue on VS Feedback
Thanks