Unable to run/deploy iOS app in iPhone simulator - uno-platform

I am not able to deploy the Uno platform ios app to the iPhone simulator. My visual studio has connected to a remote mac. when I try to run ios app, I get the error in the simulator. you can see in the below image.
I can able to run all other types of projects of my Uno platform project except ios and macOS. please let me know what I am missing?
My git repo: https://github.com/avikeid2007/Repayabl

Related

iPhone simulator in Visual Studio 2019: "Device { } not found."

I am running VS 2019 vs. 16.9.4. I have a Xamarin.Forms project and am trying to build & deploy to an iPhone simulator. I can connect to the mac and all seems ok on that end. When I try to start the app for the simulator I get a small window titled "iOS Simulator" which says "Connected", and then changes to "Waiting for device...", and then another small window pops up titled "Xamarin Simulator" which says "The device {GUID here} was not found."
I get this same series of messages regardless of which iPhone simulator I choose.
I have both XCode and Visual Studio 2019 for Mac running on the Mac.
What am I missing?
Today I updated Visual Studio to 16.9.5.
The Xamarin.iOS was updates to 14.16.0.5 in Mac hardware.
But the remote iOS Simulator still not working.
In Options > Xamarin > iOS Settings I unchecked the Remote Simulator to Windows.
Now I managed use the iOS Simulator in Mac hardware through VNC
It's not the dream solution, but works.
Iphone simulator working in Visual Studio 2019 version 16.10.4 on windows machine.
It's finally fixed! The remote iOS simulator finally works in VS 2019 16.11.5 and XCode 13.1.

How to run a mvvmcross Xamarin.Form app on an emulator

I am trying emulators to run the app TipCalc and I don't get it. I am working with Visual Studio 2017. Which emulator can I use to run an application Xamarin.Forms and it uses mvvmcross?
I want to build an app for iOS and Android.
For Android:
First, you need Accelerating Android emulators on Windows. Please choose Hyper-V or HAXM to acclerate your Android emulator.
Then, you could launch Android emulator form VS Tools --> Android --> Android Device Manager.
For iOS:
You must have a Mac to do Xamarin.iOS development. The Mac is required for building as well as running the iOS simulator.
If you already has a Mac, you just need Pair to Mac for Xamarin.iOS Development and build your Xamarin.iOS project.

Can't debug application on IOS Device

I created a vanilla PCL project in xamarin forms. I tried to run on Android and it works fine.
But when I change de target to IOS and select my real device (Ipad with IOS 11.4.1), Visual studio only allows me to build solution, I wanna to run application on it but I can't.
The target IOS is 8.0, and I already authenticated with my apple account and created a provisioning profile.
I already done this on another project before and works fine.
I really don't know why Visual Studio don't allow me to debug, when I open my oldest project with this device it allows me to debug.
What OS are you running Visual Studio on? IOS requires MAC, whereas Android is compatible with all OS. It's been a while, but I know there's an option to wirelessly connect to a MAC OS so that you can run your IOS Xamarin Forms application anywhere.
I found the solution.
I was trying to use "Debug", and it works fine on the emulator, but to real device I need to use "Debug | Iphone" or otherwise it only builds.
Even when I try to use "Release" it's the same trick.

deploying Xamarin forms application to android phone

I am very new to xamarin forms. I developed a simple autocomplete application in Xamrin forms using Visual studio 2017 enterprise version. I want to deploy that application to android phones. When I created the application, I selected Cross Platform app (xamarin.forms or Native). below is the image of visual studio run button:
and the properties of the project are below:
any article or any steps to deploy this application to android phones will be highly appreciated.
Set Up Device for Development - source - https://developer.xamarin.com
Enable Debugging on the Device - By default, it will not be possible to debug applications on a Android device.
Install USB Drivers - This step is not necessary for OS X computers. Windows computers may require the installation of USB drivers.
Connect the Device to the Computer - The final step involves connecting the device to the computer by either USB or WiFi.
Once a device is connected to your computer you will see your device like this
Now Click the green arrow to start deploy and debug.
additional - This link will show you how to debug and prepare APK for release
https://developer.xamarin.com/guides/android/deployment,_testing,_and_metrics/

How to deploy Xamarin Forms App to iOS device for Testing

I m using VS2017 for Xamarin forms app development. With VS2017,I can use Android simulator and I can deploy the simple xamarin forms hello app to my Physical Android phone(after doing some settings on the android phone).
My problem now is How do I deploy my same Xamarin Forms hello app in VS2017 in my Windows 10 PC to an iOS device? right now, I have a macBook Pro and iphone6. I try the mac agent but this only for iOS simulator.
Please help. any link or help is very much appreciated.
Update 1:
The confusing part is App ID. Say, I created an AppID in Apple Portal called MySwiftDemo and on mac i created a dummy app with Bundle Id : com.FunProject.MyFirstSwiftDemo which I used it in AppID required by the Apple Portal
and I created XF-app in VS call MyVSFirstApp and this is the actual app will be deployed to iOS-device.
1) The app name in Mac and VS are not the same. So the provisioning file is referring everything from mac, Is it ok without Xamarin app name?
2) If I have another Xamarin forms app call My2ndApp to deploy to iOS device, do I need to create another AppID on Apple Portal and Bundle ID on mac?
Thanks
Subscribe to Apple's Developer Program
Visit the Apple Developer Portal to register. Note that in order to register as an Apple developer, it is necessary to have an Apple ID and costs $100/year
Create an iOS Signing Certificate
Follow the steps linked here
Provision your iOS Project and your physical iOS device for Developer Mode
Connect your physical iOS device to the USB port on the Mac, then follow the steps linked here
Using XamarinLivePlayer we can test the app on Android and iOS
Which was introduced in Microsoft Build 2017 Event(https://build.microsoft.com/).
You can read more at https://www.xamarin.com/live
https://www.visualstudio.com/vs/mobile-center/

Resources