These days I want to have a try on the Apple computer, so I cannot decide to buy a MacBook for a while. I want to have a virtual machine first. After some hard work, I finally installed Mac OS X on VirtualBox according to this post. This post is very detailed. Basically, it takes a little time to complete the installation. After the installation is complete, you must upgrade it before you can install xcode. This upgrade process is long and you can't help but wait for a while.
Then, according to the xcode development environment, xcode can be directly downloaded and installed from the appstore, but it is too slow in the virtual machine, therefore, a dmg file is downloaded from the Apple Developer Center in windows. This file is equivalent to an image file of the virtual optical drive and can be directly attached to the virtual optical drive in VirtualBox. After the mounting is successful, you can drag xcode to the "application" to complete the installation. However, since I use a virtual machine, it also occupies space to install it on the mac, the same is true if you run it directly from the dmg disc. I simply won't install it. You can start it from the virtual optical drive every time:
After playing a few times, we found that the default resolution is 1024*768 or smaller. Can I make it a little bigger? google searched a bit and there were quite a few people doing the same thing. One of the methods was to specify the Graphics Mode at startup, although a little troublesome. Press any key when the following startup screen appears. The Boot prompt line appears at the bottom.
Enter "Graphics Mode" = "1280x1024x32" and press Enter. Note that the double quotation marks must be included, and the cross between digits is a lowercase English letter x instead of a number.
Another way is to change com. apple. Boot. plist and add:
<Key> Graphics Mode </key>
<String> 1280x1024x32 </string>
For more information, see here, but it does not seem to work for me. It may work for you.