Xamarin Cross Platform disable IOS - xamarin

I'm new to Xamarin.
My goal is to develop an app for both Android and Windows phone platforms, without IOS. I dont have any mac to test.
Under the properties solution, I already tried to remove IOS from the targets platform, but doesn't allow me. It's mentioned that its
Thats the solution i tried withou sucess:
Remove ios, windows8, and wp8 from Xamarin Forms PCL - nuget 3.0 opt-into error?
Please help.

It doesn't really matter! It doesn't mean you are actually stuck with iOS in any way.
The only thing it means is that the set you have selected is also compatible with the libraries in Xamarin.iOS. So it means that you could create an iOS project without too much trouble if you would want to in the future.
If you do not create an iOS project, you won't get an iOS app.

Related

Xamarin ios app to run on Mac with mac-catalyst

we're currently wrapping up our cross platform xamarin forms app that is being deployed on android, UWP and iOS.
Just wondering with the introduction of Mac Catalyst has anyone had any success or information on making their xamarin ios app run natively on the mac using this feature or would they just be using xamarin.mac?
Through this thread, it looks like the mac-catalyst of xcode11-feature has not been supported so far.
And you can follow this issue link to track the process of adding support for Catalyst.
Will be available with .NET 6 this Fall (2021). According to their plan.

Shell.Current.GoToAsync is not working on UWP

I want to use Xamarin.Forms Shell on the UWP platform, so I downloaded the example at https://learn.microsoft.com/en-us/samples/xamarin/xamarin-forms-samples/userinterface-xaminals/, and then i updated all the nugets, so the version of xamarin forms is 4.7.0.1179. When i built this project and run it "Shell.Current.GoToAsync" has no effect on the UWP platform.
My development environment:
So I want to know if this is normal, if not how can i fix this?
Shell.Current.GoToAsync is not working on UWP
It's know issue in UWP platform, and it was fix in pre-release version. Please try to update the Xamarin.Form nugget to 4.8.0.1187-pre2 will fix this issue.

Removing Windows Phone target from Xamarin.Forms app

I was trying to add a web service reference to a Xamarin.Forms app when I noticed that there was no "Add service reference" option available when right-clicking the project's References. After some digging around I found that apparently you cannot add a web service reference to a project that targets Windows Phone 8. I am fine with removing Windows Phone 8 from my app as I really only care about Android and iOS. However, when I try to actually remove it, there doesn't seem to be an option to choose whether or not I want to target WP8 as you can see in the picture:
So how do I actually remove Windows Phone 8 from my app?
Thanks in advance.
Removing all Xamarin.xxx targets then uninstalling Xamarin.Forms from PCL and finally adding Xamarin.Android and Xamarin.iOS targets again seems to fix the problem.

xamarin.forms android application stuck in deployment

I am creating cross platform app in xamarin.forms.but when i try to deploy it in xamarin android player.its just stuck there..i had found same question but still no proper solution..please help me..
The Xamarin Android Player has actually been deprecated, it was never fully released and likely has a few bugs.
Try using the built in visual studio emulator instead:
https://developer.xamarin.com/guides/android/deployment,_testing,_and_metrics/debug-on-emulator/visual-studio-android-emulator/

Xamarin: Can I do in a cross platform project the "Android part" and do IOS when the rest is finish?

I have a project in Android Studio (on a pc), and as far as I know now Microsoft owns Xamarin and its free once you have a Visual Studio license, then you can develop apps using C#(Already know that I have to port the JAVA code) and then compile in a MAC the IOS app.
My 2 concerns are:
When you can't compile, will the IDE show the IOS related errors?
There is a clear implementation of "cross platform code" vs "specific code"?
How Xamarin manage it?
In addition, our plan is to finish the app for Android which is our primary target and then manage the IOS, besides the other questions, what I need to know is if that is possible.
Yes, the VS IDE will show you build errors from the iOS build server.
Yes, you can build an Android app using Xamarin and later extend it to build an iOS app also. This is easiest if you use Xamarin Forms, but it also possible with native Android/iOS UI, but will be much more dependent on how you architect your applications.

Resources