Unable to connect to iOs simulator using Xamarin Forms - c#

Im having a problem when debugging my Xamarin.Forms app using the iOs Simulator on my Windows 10 laptop...
On my windows machine I am running VS2017 latest version, on the mac I am running Visual Studio Community 2017 and installed the Alpha updates.
Then I downgraded the Xamarin.iOs to stable version (only downgraded xamarin.ios) to fix some compile errors...
In the end it compiles > It starts the simulator > It displays: "Updating(0%)"..
This is where I am stuck.. hope anyone knows a solution

Are you trying to use the iOS simulator on your Windows laptop?
if so, the iOS simulator requires VS/msdn Enterprise subscription.
Either way double check that the iOS version matches on your simulator and iOS project build settings,make sure your macOS and xcode is updated.
I've had problems in the past with debugging on my macbook/simulator from windows/vs, and updating the macbook/xcode usually works.
Also, try having the simulator already open before debugging.

Related

This template uses shell, which doesn't yet support UWp

Does anyone know how I could fix this?
Shell support is only provided for Android and iOS at this time.
I need to create a mac app how I can do that?
MSFT provide document that make xamarin.mac app, and here is xamarin.mac startup. the following are default requirements
Xamarin.Mac application development requires:
A Mac computer running macOS High Sierra (10.13) or higher.
Xcode 10 or higher.
The latest version of Xamarin.Mac and Visual Studio for Mac.
To run an application built with Xamarin.Mac, you will need:
A Mac computer running macOS 10.7 or greater

How do I start a UWP Emulator?

I have created a cross platform app (Xamarin), which is targeted by UWP. It just uses the default template and that is it. I am now trying to debug it using an emulator, however the only debugging option I have is: "Device", which means I have to plugin a Windows phone.
I have also gone here and installed an emulator ( Windows 10 Fall Creators Update (version 1709 - this is what my app targets): https://developer.microsoft.com/en-us/windows/downloads/sdk-archive. After installing; I ran: C:\Users\MyUserAccount\Downloads\Windows Kits\10\Emulator\EmulatorSetup.exe and I see the message: The features installed on this computer are now up to date.
However, I still see no Emulator to start in the debugging menu.
Basically I am trying to do the UWP equivalent of Androids: Tools/Android/Android Device Menu/Start (start is an option for each emulator).
How do I start a UWP Emulator? The Tools menu in Visual Studio 2017 has an Android Device Manager and a IOS Device Manager, but no UWP Device Manager.
How do I start a UWP Emulator?
After installed emulator(10.0.15254.1), you need modify the app's min version to 15063. this lowest support version.
And your system need to support Hardware-assisted virtualization and
Enable Hyper-v for emulator
Then switch the Solution Platforms to X86 or x64.
For more info please refer Test with the Microsoft Emulator for Windows 10 Mobile

iOS version Xamarin app compatibility

I am building an app for iOS using Xamarin Studio on mac and have set the Deployment target to 7.0 but was not able to test on a iOS 7.0 , so my questing is will my app be supported on the devices running iOS 7.0 and above or is there any other or higher versions I have to specify,
I am able to run the app on a simulator with iOS 10.3.1 now for testing purpose.
You didn't specify what UI you want to use. If you want to use Xamarin.Forms then the answer is: no you cant use Xamarin.Forms on iOS 7. It requires at least iOS 8 to do so (see: Xamarin.Forms Requirements.
If you're using platform-specific UI projects you should be able to target iOS 7 generally. You might run into problems with newer version of XCode though so be prepared to download and install an older version of XCode side-by-side with the latest version. That's what we are doing on our build machine(s) too.
If you want to publish to the AppStore also make sure to provide a 64bit version of your app or else you won't be able to successfully submit.
Also I would recommend to change to the new Visual Studio Version 15.3 as this one has built-in C# 7.1 Support now. Also Xamarin Studio won't receive any updates in the future anymore so it's very likely that with the next Xamarin release something will break and you won't be able to develop your app further.

Is it possible to develop iOS App on windows using (Xamarin and visual studio) without MAC

I have already developed android app using xamarin and now i want to do same for iOS. As per xamarin's official documentation, i need to have MAC machine to compile my C# code, but i dont have MAC. Is there any workaround or alternative so that i can build ios app using xamarin without need of MAC.
No. The underlying SDK and build tools, including the iOS simulator, are provided by Apple and will only run on OSX.
You can use Cloud Mac service Macincloud which supports Xamarin remote build from Visual Studio. You will not be able to build iOS Apps without a Mac so Macincloud is your best alternative.
As standard Xcode only runs on UNIX/OSX.
However it IS possible to run Mac OSX, in order to develop iOS apps, with software such as VMWare and Parallels - But I won't recommend it in any way.

xamarin studio for ios on windows?

Yesterday at the xamarin webinar I asked if it was possible to install xamarin studio for IOS development on a windows machine and was given the answer that it was possible but developers usually went for visual studio. Today I've tried to find info about how to do this but can only find posts that it can only be done via Visual Studio. Most of the posts are a couple of months old though so which is the correct answer?
Unfortunately, I think your fears are true. Another post talks a little about this:
How to develop iOS app using Xamarin Studio on Windows?
The official Xamarin documentation also says pretty clearly that you need Visual Studio to do iOS development in Windows. On top of that, you also need a Mac on the network to compile the iOS project.
Using Mac build Host you can do but you'll need the networked mac
for developing and debugging too.
or else you can use Xamarin Live Player using which you can
debug,develop and deploy the app completely in windows without the
help of any Apple system but to sign and release the app to appstore
you will need Apple System though
You can access Xamarin Studio from a Windows machine by accessing a remote Mac from services such as MacinCloud.com. Although you are not running Xamarin Studio directly on your Windows machine, the ability to access a Mac server for development allows you to run Xamarin Studio, and other Mac-only tools easily.

Categories

Resources