Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Importing files from one project to another

Tags:

xcode

xcode7

I want to copy some files "Classes" from another project to my current project, but when I run it I get dozen of errors, its seem there are some steps to copying file from one project to another project using Xcode ,

I can make a collection of files "Classes" accessible in my project?

One project is Objective c, the another one seems to be Objective C++

like image 533
user2698307 Avatar asked Feb 08 '23 01:02

user2698307


2 Answers

Individual Files

Organize your files

Place the files you will need at a location that is accessible by the Xcode project. Usually, you place these files is a directory below your Xcode project, but that is absolutely not necessary.

Drag & drop

Grab all the files you need and drop them onto your project organizer. You will be prompted with this dialog, to which the settings should look like this (ensure that your target is selected):

enter image description here


Projects

If you want to include a Cocoa Touch Static Library, in the form of an Xcode project, drag & drop will suffice.

like image 162
SwiftArchitect Avatar answered Feb 24 '23 14:02

SwiftArchitect


No there are not exactly steps we need to follow. Just make sure all dependencies are fulfilled while importing classes from other project. Don't forget to click at checkbox Copy files if needed so that Xcode can make separate copy for your project.
In order to import files in your project click following sequence:

command + option + A

or you can also add files by

Xcode -> File -> Add files to "Project Name"

like image 29
Aamir Avatar answered Feb 24 '23 14:02

Aamir