简体   繁体   中英

Using a single xcode file for multiple projects

I haven't tried this before but wanted to know how it happens. Suppose I have an Xcode file for my project called 'Project A'. Now I want to make another project with the same features as that of 'Project A' for a project called 'project B'. But for 'project B', I don't want to make a different Xcode file but rather want to incorporate the changes in 'project A' itself so that when I run the same project, I'll be able to run project A or project B as per my need. How can I achieve this…?

Click on your project, Goto General > Targets.

Right click on your project Target and select Duplicate.

You will get to choose between iPad and continue to duplicate for iPhone.

Going ahead in each new/existing file, you can choose which target it belongs to and keep doing your development. If you exclude the file from an target, it will not contribute to that app's size.

You can also keep your future files in both Targets depending on your needs.

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