Reputation: 10039
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.
Upvotes: 12
Views: 16482
Reputation: 308
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
Note: Don't directly add files from another project folder, Xcode will copy the reference of the file instead of copying it.
voila! now the file is added to the project, under the selected folder
Upvotes: 8
Reputation: 9124
The project navagator in XCode with the folders and files has nothing to do with what files are in your 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've dropped the files into the project directory, you need to add them to the project. Right click the folder in the navigator you would like the files to go into, and select "add files to 'your project name'"
Alternatively you can drag files from one Xcode project to another in the navigator.
Hope this helps.
Upvotes: 17