Xamarin IOS MAC virtual machine (VisualBox5.0) real machine test successful!

There was no news after a few days of payment for the apple developer account. I contacted Apple customer service and was asked to upload my ID card or something. . Uploaded, finally done.


Next is a series of operations such as applying for a certificate and binding the APP (there are tutorials online, but they are not the latest, but those who can read a little English should know how to configure them, so I will omit them here)


Poor people don't have a MAC, and it's troublesome to install a MAC using


I checked online and found nothing.

Try it yourself, I use VisualBox5.0 + EL_Capitan10.11, XCode8.

After the native win10 machine is connected to the iPhone, itunes detects the Iphone and pops up automatically.

Open VS2015 and the Xamarin plug-in has been installed. I have always used the ios for window simulator for testing, and the real machine for Android. It is rare that the company has equipped an iPhone 6 plus, so there is no way to test running the APP on the real machine.


Get started, now visualBox is very good. Virtualization is not just about the network, but also devices such as serial ports and USB can be connected to the virtual system.

After opening VisualBox, I found that the iPhone could not be detected. I checked online and found that I need to install an extension to use it normally. The address is: http://download.virtualbox.org/virtualbox/5.0.0/Oracle_VM_VirtualBox_Extension_Pack-5.0.0-101573. vbox-extpack

After installation, shut down the virtual system, then open Global Settings -> Extensions, and then load and install the downloaded extensions.

Click Virtual System Settings, then open USB devices -> Select (usb2.0) -> Click + USB Filter, see apple iphone, click.

After adding, start the virtual system. After the system starts, the iPhone responds and asks if you trust this computer. Of course, click "Yes", and the OS displays the pleasant "Photos" application, showing pictures of the phone:).

Then go back to vs2015 and connect to the mac agent, and the green light turns OK. See the debugging arrow ^_^ which shows: Jockey’s iphone.

Finally, I clicked debug excitedly. After a while, debuging on at device...see that the iPhone application was successfully installed. . .


Because there is very little information related to xamarin, I would like to write down my experience and share it.




おすすめ

転載: blog.csdn.net/Jockey/article/details/52842174