How to merge two project code in one common project in objective C?

Hello everyone,

Greeting for the day…!!!

I have two different projects, let’s say PROJECT 1 and PROJECT 2. In both projects some files (code and design) are common. Now I want to create PROJECT COMMON that should contain common files and make it separate application. And also want to create all three targets (PROJECT 1, PROJECT 2 and PROJECT COMMON) in single application.

How can it possible, please help me if anyone have an idea.

Thanks.

Hi @vimipatel

You could place common files in a framework and add it as a target to your project. Also you can add your PROJECT 1, PROJECT 2 as targets to that project.
Here is a tutorial on how to create a framework: https://www.raywenderlich.com/65964/create-a-framework-for-ios
Hope this is helpful.

Nikita

2 Likes

This topic was automatically closed after 166 days. New replies are no longer allowed.