Since I wrote a React-Native project Mung a few days ago, I wanted to package.apk and.IPA. Personally, I have been engaged in Android development, so Android app packaging is no problem, but ios packaging is a big problem. The biggest problem is that I don’t have a Mac, and MY own computer has been bought for less than two years. I couldn’t buy another Mac, so I figured out a way to…

The steps are very simple, really not complex, and there is no drive problem, so the computer configuration of the computer.

mac2.png

This section describes how to debug IOS in Windows

  • After the query generally has the following methods, if there is any mistake or omission please point out.
    1. Xamarin and Visual Studio can be developed
    1. Install Cygwin and develop with Toolchain.
    1. Install black Apple.
    1. Install virtual machine, install apple in virtual machine.

Which one to choose

  • The first and second are not used, but I think there are a lot of problems, there is little information on the Internet about one or two, the best way is to run on the Mac, so that you encounter problems search should soon have the answer, and many pages are not recommended to develop ios under Windows, So if you don’t have the money for a Mac or if you don’t want to switch, you can use the third or fourth.
  • Third, black Apple research for a few days practice for a few days failed, finally spend money on Taobao to find someone remote installation, they said before the installation can be successful, then made more than three hours I have not given up, Taobao seller give up, in my repeated requirements have changed several methods or failure, summary: To be honest, the Black Apple can go to the vision forum and read a lot of information. If you have time and patience, the black Apple has a lot of driver problems. This is an undeniable fact, and the network card does not have a solution.
  • Fourth, many people think that the virtual machine card, this is true, you choose the virtual machine and your computer configuration and the choice of Mac system has a lot to do with, anyway, MY computer is not card, if your computer is higher than my computer configuration will be better.

practice

  • I tried VirtualBox+Mac about a month ago, but VMWare+Mac is not stuck, and I installed on a mechanical hard disk, if you are solid state will be faster (online said).
  • You can run XCode, WebStrom, IOS, Virtual machine, Node, Safari all at the same time, so react-Native development should be fine if you don’t have any configuration on your computer.

The setup was mostly linked but I was successful

    1. Mac system, both to download unzip a can pan.baidu.com/s/1i5a8hwT password: 0t7i can also use the link in the following article, the following article system I did not know, but this link is Mac 10.12 is very good
    1. Install VMWare+Mac can follow the steps of the installation or online search there are a lot of information, OS system finally use step 1 system, remember to install VMWare Tools, system download step 1, the system had better not update, personal opinion.
    1. The system will be better after optimization, especially the ground glass is very card.
    1. If your system is not up to date, you may not be able to install XCode9, but it doesn’t matter, the installation is too new and may be too jammed, we can use XCode8, I installed XCode8.2 address can download the historical version.
    1. Configure the React-Native environment on a Mac. The react-Native environment is much simpler than Windows. There are no environment variables
    1. IOS RN 0.45 or higher requires a third party build library (boost, etc.)
    1. If you want to package ipA, how much do you need ios developer account? Baidu go, but it does not affect our development and debugging.

use

    1. Most of the react-Native Ios is best done on Windows.
    1. Changing the Icon and launchImage must be done in Xcode, so it’s still necessary.
    1. Package and publish.

screenshots

Computer configuration

desktop.png

Sincerely BuKa

mac2.png

Mac

mac1.png

Mac

mac3.png

Next you can write Hello World IOS to test the environment