Xcode - How could you copy paste classes / files from one project to another?

Copy file attachments to finder, but I cannot view them in xcode. I'm new to xcode, so forgive me if you have a question about noob.

+6
source share
1 answer

Project Navigator in Xcode with folders and files has nothing to do with the files in the project folder in Finder. You will see that the navigator contains β€œfolders” that do not even exist in the directory on the Mac.

Once you drop the files into the project directory, you need to add them to the project. Right-click the folder in the navigator where you would like to include files, and select "add files to your project name"

Alternatively, you can drag and drop files from one Xcode project to another in the navigator.

Hope this helps.

+12
source

Source: https://habr.com/ru/post/893518/


All Articles