简体   繁体   中英

How to manage multiple projects in single project copy in iOS?

现在我们要对所有城市都具有相同的项目,因此我想在一个项目中进行这些项目,因此我可以更改单个项目并在每个项目中都实现。

You need to create one different target for every city, on the same project. They will have the same core code and then, you can configure different ressources for all of them. (icons, images, fonts ...)

Each of them can use a different plist file in order to have some flags and not others.

To create a new target : * Go to your project panel (with tabs General - Capabilities - Resources tag ...) * Open the left panel * There is a + at the bottom to create your new target (or you can copy an existing one)

You can switch from a target to another on the top bar at the right of the selected device to debug

When you have a file, you can decide on which target he can go on the right panel on the section "Target Membership"

Need screenshots ?

Very nice explained with pictures is here . You can achieve it by using targets in Xcode.

As well here is explained about targets.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM