Xamarin on OSX access web service - xamarin

According to this link I can put 10.0.2.2:port in the host and access the webservice from my android emulator. This does not seem to apply if I am using a mac (OSX). Is there a different trick if you are using a mac ? Both the Android App and the webservice would be running on the mac. There is no windows machine.

Related

Xamarin forms iOS app has stopped communicating with local WebAPI timeout exception

My app on the iOS emulator stopped communicating with the local WebAPI suddenly.
I have a Xamarin App (only for iOS) which communicates with the database using APIs. I have built another Web API project to write needed APIs. All the functionality was working absolutely fine until it stopped working suddenly.
I am using VS2019 for development, I have Macbook Pro with latest XCode on it.
My API calls with Fiddlers are successful.
On the iOS emulator's browser (on mac and on windows both places), I can browse the local web API site (which is on my local windows computer) without any issue.
Any API calls from an app running on the emulator are throwing a timeout error.
Earlier with API were working, I could actually debug my WebAPI code after calling it from emulator but now it breakpoint does not hit.
I tried resetting emulator, Updating VS 2019, Xamarin, Xamarin Studio on Mac, XCode etc.
Here is the error:

Does Xamarin IOS Simulator Require XCode?

Well , im new to IOS app development i've heard about Xamarin cross-platform app-development, so my setup is ==>
Visual Studio Enterprise Update 1 Installed.
Xamarin For Visual Studio 2015 Downloaded (Now about to install).
Xamarin IOS simulator downloaded.
Now as i have xamarin simulator i don't need to buy a mac or get a hosted-mac , that's clear now i just wanna confirm do i need XCode ? i mean i have xamarin simulator but still i'm confused about XCODE for windows how can i get that should it be getting installed automatically or do i need to give it another shot.
I'm confused about all this .
I just don't* have the budget to buy a MAC and i want to do APP development just (Debugging ) deployment will be done latter please tell me what should i do or give me the proper instruction thanks.
You need to run Xcode on a mac to build Xamarin apps for iOS. A Windows install of Xamarin on Visual Studio will allow you to connect to a mac to do the build remotely, but you still need a mac available that has Xcode installed on it to do the build.
You can download Xcode from the Mac App Store. You will also need the mac to upload the final package to the iOS App Store if you're going to release it there.
An other option is to use a cloud based Mac server, there are several companies that rent them out on hourly/monthly basis for this purpose (MacinCloud being one that I've heard of).
XCode needs and can only be installed onto a MAC OSX system.
Once you have XCode installed, you can use its iPhone simulator to emulate the iOS apps you make on your windows pc.
You need to connect to the MAC by using the MAC Agent on Visual Studio. This connects remotely to the MAC and allows you to debug the app to be emulated onto the virtual iOS device being simulated on your MAC OSX system.
You can use MAC Cloud based server but also, you can use a real iOS device such as an iPhone to debug apps directly onto the device.

Debugging Xamarin.iOS project without physical mac

My idea is to use macincloud to build xamarin project. And I'd like to debug it also.
On xamarin's site it's written that "Xamarin.iOS applications can be debugged with the built-in debugger in Xamarin Studio or Visual Studio." But it's still not clear if the device, for example iPad can be connected to Windows machine? Or It has to be connected to Mac only?
Device has to be connected to the Mac. If we are connecting to a mac remotely, we can use a Simulator and and view the result using a RDP client like TeamViewer. I'm not sure if that is possible with MainCloud. You can also go for Xamarin Test Cloud if that is feasible for you.
No, it's not possible to deploy to device and debug with MacinCloud. You can however launch a simulator and debug your app inside the emulator.
If you want to deploy to your ipad you can use publish your app with TestFlight service and install TestFlight builds on your iPad.
See more details at Developing iOS Apps in Visual Studio with MacinCloud
There are two possible ways how to do it. First one is more proper but it's in preview version - Microsoft introduced Xamarin Live Player.
Second way is to have your own virtual machine of macOS on Windows machine. Here is the tutorial how to do it.

How can I build an app in Appcelerator that can be deployed via the Mac App Store

Having successfully built an Appcelerator generated application for iOS, I am thinking about deploying the same application on the Mac App Store.
Is this possible?
If so what do I have to do test test and what do I have to do to deploy?
No you can't. Appcelerator is a mobile app platform. It doesn't support Mac desktop applications.
Only if you've create a webapp you could use a different wrapper (like Electron) to create standalone wrappers so you could upload it to the Mac-Store. But that's not related to Appcelerator.

Can't detect Windows App on Weinre?

I'm running Weinre on Mac. I have an HTML5-based Windows app installed on a Windows phone. If I try to access my app via the browser inside the Windows phone, I am able to detect the app on Weinre without any problems. However, if I open the actual installed Windows app (not via the browser), I can't see my app listed on Weinre. What could be the error and how do I fix it?
Note: I'm using Chrome as my debug client. The model of the phone I'm using is Nokia Lumia 925 (Windows Phone 8.1).
Thanks in advanced!
It may be a lot of work, but if you install Windows in a VM, you could use Visual Studio: http://blogs.msdn.com/b/davrous/archive/2014/07/21/how-to-remotely-debug-and-profile-the-performance-of-your-html5-websites-amp-apps-on-windows-phone.aspx

Resources