iOS app flashing and closing on remote debug from Visual Studio - xcode

I'm a beginner in iOS development in Visual Studio 2013 through Xamarin.
I made a test app and tried to debug it on the MacBook Pro through LAN remote debugging.
As soon as I debug, the app starts shows launch screen and after 1 second it close, this happens several times and then the app stops.
I'm using xamarin 6.1.4.1 on both machines.
It shows the error : An error occurred while executing the mtouch.
What should I do now??

After going through every things, I re-installed Xamarin Studio by using Xamarin Installer rather than installing individual components. Seems like Xamarin Installer makes some more changes in system other than installing components.

Related

development app is deployed on IPhone, but I cannot start it

I have an app in Xamarin that I want to test on a physical IPhone (normally I test it on Android). I'm connected to a Mac, the development certificate is working and everything is deployed to the point that the app is actually installed on the IPhone itself. The issue however is that when I press the icon to start the app, it tries to start it and then is closes right after that (like it crashes or something).
I'm using Visual Studio for Windows, and it is stated that: "XAML Hot Reload encountered a problem and failed to start. Verify the Mono Interpreter for is enabled in the project settings, clean and rebuild the solution.". Mono Interpreter is enabled, I cleaned the solution and rebuild it multiple times. There are no errors given.
The app that is installed now shows the Xamarin icon and Xamarin splash screen (so not the custom one I designed). I don't mind that, but I'm not sure if that has something to do with this.
Does someone know what is wrong here and how to fix it?
Visual Studio for Windows version 17.4.1
iOS version 15.5
Note: this issue is only with the development and deployment directly from Visual Studio from Windows. When the app is distributed to the users (in App Center) the app works as it should.

Xamarin Form Won't Deploy Visual Studio 2019

I'm new to creating Mobile Android apps using Visual Studio and I've started creating a new Xamarin Forms project. I didn't add any code. I just created it and testing out how it works. When I tried to deploy, it will show an error, "There were deployment errors. Continue?"
Deployment Error
I even went to the Android Device Manager to create an Android Emulator and it also provided me this error.
Android Emulator
I tried every solution that I could find online. Some told me to rebuild, clean and build my solution. That didn't work. I researched to check mark Hyper-V in the Windows features and even rebooting my computer several times and that didn't work. When I tried to deploy, this shows up in the output log. Not sure if this will help.
Output Log
I also attached images of what I've done so far and I really don't know what else to do.
Android SDK Platform and Tools 1
Android SDK Platform and Tools 2
Windows Features 1
Windows Features 2

debugging XAMARIN forms apps doesnt always work - why?

I'm trying to finish a XAMARIN Forms project for a client and the whole time I've had issues. The biggest annoyance (really too many to list) is that when trying to debug using the iPhone simulator the debugger fails to hook up. Is there a trick I'm missing?
My setup:
I'm working on a Windows 10 workstation with a Mac Mini setup as my build server. I'm using Visual Studio 2017 Enterprise Edition. The Mac has the latest XCode and XAMARIN Studio stuff installed.
Everything is up to date
Right now the only 'solution' seems to be to stop the debugger in VS and start over.
Occasionally I have to close VS all together, reboot the mac and start from scratch.
Is there a trick? A checkbox somewhere that says "make this work like it should"?
1) are you in Debug mode on not Release ?
2) can you try on real iOS device ?
3) have you try on Xamarin Studio instead of Visual Studio ?
4) does it work on Android (simulator or real device) ?
5) have you try with a new clean project ? if it works try to remove bin & obj folders

Visual Studio Android Emulator Is Not Running the Application

When I deploy/run the Xamarin.Android app in Visual Studio (either pressing ctrl+F5 or play-button in toolbar), the Visual Studio launches its emulator for android (Note: It is "Visual Studio Emulator For Android", not SDK or any other emulator) without any difficulty and within a reasonable amount of time which works fine. But the problem is that it does not automatically run that app. Neither does it show any icon to run it.
I have not had much success with the emulator built in to VS.
However, you need to switch your output to "verbose" and monitor the output window while it is attempting to deploy. This will give you a wealth of information during the deploy. Likely, your deploy is failing, this will help you figure ouy why.
As a side note, the free Genymotion is a much faster Android emulator that I have had great success with.

UWP Windows 10 Phone Emulator

Whenever I try to debug my UWP projects with the a one of the Windows 10 Phone emulators I get the following error after the emulator opens to the home screen:
DEP6100; The following unexpected error occurred during bootstrapping stage 'Connecting to the device '90F4E8F4-EC5F-4B64-B2E8-6EDE6F813BD3'.': SEHException component has thrown an exception.
The app never starts. I have not entered any code. I simply create a UWP app and then try to debug it with the Windows 10 Phone emulator.
I have already uninstalled and reinstalled VS 2015. I even did a windows 10 repair.
I get this the first time I debug an application. The trick I found is to do the following (precisely)
Make sure that your configuration settings are set to build and debug correctly (yes you need to check this UWP doesn't ship with it correctly configured)
Make sure the emulator is closed
Press the play button in visual studio
As soon as the emulator appears within visual studio, click on the build menu and hit cancel. This will stop deployment but the emulator will continue to boot.
Once the emulator has booted completely and you're able to navigate the OS, you're good to go. You can now run and debug your application normally.
NOTE: Don't close your emulator or you'll have to do this again. Just his stop in visual studio to stop debugging.

Resources