Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does Xcode create endless folder recursion?

I am new to Objective C, Xcode (4.3.2) and Mac OS (10.7.3). I have noticed that several of my Xcode projects have an endless folder recursion in the project folder. This is not visible in Xcode, only in Finder. Has anyone encountered this or know anything about it? When viewing the folder in Finder, it looks something like this:

- projectName
  file1.h
  file1.m
  file2.h
  file2.m
  - projectName
    file1.h
    file1.m
    - projectName
      file1.h
      file1.m
      ... and so on ...

Not all files in the top folder are in the subfolders, but all subfolders seem identical (although I never reached the end of this bottomless structure).

I cannot see any indications that these subfolders are for example aliases.

like image 625
Joel Avatar asked Apr 25 '12 06:04

Joel


1 Answers

it happened to me before. You have to be very careful when you add a file to your project. If by mistake you double-click on a folder, it will be added in your project. And if that folder happened to be your project root folder, it is added recursively. The nasty thing is that it looks like Xcode is not doing it, but it is working really hard in the background to add all the files, and then they magically pop up later while you're not looking.

like image 65
user1375594 Avatar answered Nov 17 '22 06:11

user1375594