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

Viewed 13916

Copy pasting files in finder works, but I cannot view them in xcode. I am an xcode newbie, so pardon me if its a noob question.

2 Answers

I know, I'm late to the party but posting the answer here. so it could help someone.

Basically copying files from the finder won't show in Xcode. You have to add files explicitly from Xcode. Follow below steps

  1. Copy files to your project folder first
  2. And then in Xcode project navigator, right-click on the folder and click on Add Files to "project-name"

Note: Don't directly add files from another project folder, Xcode will copy the reference of the file instead of copying it.

enter image description here

voila! now the file is added to the project, under the selected folder

Related