I have to develop a demo app using Xamarin + Visual Studio Community 2015.
I am completely new with this technology.
I have connected using USB one iPhone 6S to my Windows 10.
My problem is that Visual Studio does not recognize iPhone device.
Can you help me? Perhaps this device is not suitable for this development?
Thanks in advance.
You are going wrong. In order to test your IOS app on any physical device, you need a mac machine which will be remotely connected. Before deploying your application to a device, you need to have an active subscription to Apple's Developer Program or use Free Provisioning. Go through this link for better understanding. In case if you want to test your IOS app you can have IOS simulator for windows. For installation details click here.
You can not deploy your app on ios app from windows machine connecting via USB cable.
Related
I have:
Windows 10 + VS2019 CE
iPhone 6
Remote Mac (without ability to connect to it my iphone!)
I made all setup and i can test my application on emulator in VS2019 CE on Windows. But, how to test my app on real iPhone device?
WARNING! I have no ability to connect my iPhone to remote mac (over USB or someting else).
and I hope that the opportunity still exist.
Please HELP!
There are two ways to run the application without connnecting to mac.
Use Hot Restart , we can deploy the app to the real device on windows, but it has some limitations , check https://learn.microsoft.com/en-us/xamarin/xamarin-forms/deploy-test/hot-restart#limitations .
Create ipa file and then install on the real device , it requires Distribution Provisioning Profile and we can choose Ad Hoc Testing(in this way the udid of the real device should be added in Provisioning Profile) or In House / Enterprise Deployment.
Been searching the web and stackoverflow for 3 days, and I can't find an answer for what I need. I am a C# developer, not a Pro one but I am pretty good with developing Windows (desktop) software.
Now I want to port a windows software to Mac, but I simply can't find a guide on how to do this.
I installed VS coomunity 2015 with xamarin, but I didn't find any tutorials or guide on how to port a desktop software to mac os X (not to ios/windows phone).
I know that using Mono will help do that, but I simply have no clue where to start. I installed vmware with elcapitan, have everything set-up but I have no clue what to do next.
So knowing that I developed a C# .net app, that uses only the default .net libs that are supported in MONO, what should I do to port it on mac os X?
How can I compile in VS 2015 and simply run on Mac OS X?
Thanks a lot!
Vlad
Developing a Xamarin.Mac app is currently not supported in Visual Studio and requires Xamarin Studio running on a Mac with the latest version of Xcode installed.
Windows Forms and Windows APIs are not supported in Xamarin.Mac so you will need to port your UI to NSWindows, NSViewControllers and NSViews. However, you can share the back end code across platforms such as your data models and business level classes. A typical app can share up to 80% of the code across platform.
I would suggest starting with our Hello, Mac documentation as it gives a needed base required for the rest of the Mac documentation.
I am using a Nokia lumia630 device, which uses latest windows 10 insider preview build available.
i created a sample windows UWP application and took a build of the same.The output of the build is an Appx.
How can i install this Appx to my device? Anyone having any idea?
Deploying apps to Win 10 Mobile is a bit difficult when using the command line tool. A great alternative is the Device Portal that is available under the “For Developer” settings.Its available with the latest build.
Now You can connect to the device using a web browser and manage apps via the Apps page with no pairing/pin required. This seems to be an easy way of deploying apps than using command line.
Microsoft developed a command line tool called WinAppDeployCmd so you can deploy an Universal Windows app from a Windows 10 machine to any Windows 10 Mobile device via USB or WiFi (since they're on the same subnet). That's a perfect solution if you doesn't have Visual Studio, the app source code or you're under a Hyper-V Virtual Machine.
Basically you will need:
Windows 10 SDK
Generate the .appx package (PC)
Enable the developer mode (Mobile)
Turn on the discovery mode (Mobile)
Get the code to pair devices (Mobile)
Get mobile IP address using WinAppDeployCmd tool (PC)
Run command (PC)
The command will look like this
WinAppDeployCmd install -file “<path>” -ip <ip> -pin <pin>
The tool can be found at C:\Arquivos de Programas (x86)\Windows Kits\10\bin\x86\WinAppDeployCmd.exe
You can find a detailed step-by-step tutorial here
Visual Studio allows you to directly deploy an app to a windows phone. You need to register your windows phone as a development phone with Microsoft. Once this is done, you could use visual studio to do this for you. Not sure if you can deploy windows 10 apps to your phone at the moment. Try this link and see:
https://msdn.microsoft.com/en-us/library/windows/apps/ff769508%28v=vs.105%29.aspx Remember to Upvote if this helps.
You can register your Windows Phone 10 in developer mode. Follow these steps and you can achieve your goal.
When you use device portal like mentioned in the answers above, some might get the following error
"Failed to start deployment. Failure text: Package failed updates, dependency or conflict validation. (0x80073cf3)"
To fix this:
Add the dependencies found under "Dependencies/ARM" folder.Add it here.
I had to add following dependencies to make it work:
Microsoft.NET.CoreRuntime.1.0.appx
Microsoft.VCLibs.ARM.Debug.14.00.appx
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.
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.