preface

After we have developed our own components, we need to see the effect in the main project, so we can’t (directly upload pod, update the version, and then the main project pod install) because we can only upload and update the version number when the version is sealed, so we need to debug locally.

The preparatory work

  • Create three new repositories, one main project, one Home Pod library, one Cart POD library, and one index library.

TTProject is the repository of the main project, The TestNet is the master project folder,WW_Carts is the Cart Pod library,WW_Carts is the Home Pod library,WW_Carts is the Home Pod library, I put this two Pod warehouses and the master project in the same directory, for the convenience of later reference, put in the same directory in the master warehouse TTProject will not update.

To assist

1. At first, I need to pull down the master project from Git. There are two components of the master project that are Homes and Carts that are referenced through A POD. Now THERE is a task that I need to modify the code of the sa components.

2. A new kind of Carts is created to complete the development of components. I need to access the Carts in the main project for debugging, regardless of decoupling.

3. Use path path to reference our local library for debugging and development. As mentioned above, I put POD local warehouse and main project warehouse in the same folder for the convenience of path path reference. At this time we are pod install under the main item

4. The file we just added is now under our Development Pods and ready to use. We see that there is not a line of code underneath the TTProject repository, a file is added. We can also modify the code of WW_Carts directly in the main project Development Pods through PATH, and it will be synchronized to the warehouse where THE WW_Carts are located.

5. If the student responsible for the Homes component fixes a bug that you want to see in the main project. Also the same pull warehouse code, the main project to set the path,pod install, pull other components to the main project to do local debugging are pod install, because some files do not pod install is not out.

6. When the development is completed and the test is passed online, we will tag each component library and upload it.

7. The main project is referred to in this way, local and online switching flexible processing we can do pod library and main project debugging in the local, do not need to upload pod library frequently.