title: Strange situation give error: "The application bundle does not contain a valid identifier."
body: <p>Today I experienced a very strange behavior with my XCode (using Version 4.2, iOS 5.0).</p>
  
  <p>I read some another questions, but my problem is diferent and I never before had this issue.</p>
  
  <p>So, XCode gives me the error "The application bundle does not contain a valid identifier." when I'm trying to run my app on a device (in the simulator just simply does nothing).</p>
  
  <p>I'm sure that the project is correctly set, the bundle ID is correct, my certified is also correct..</p>
  
  <p>I already try a lot of different approaches to solution the problem. Then I realized that it just gives the error when I add a folder to the project with the options "Create folder References for any folder added" selected (like the picture).</p>
  
  <p><img src="https://i.stack.imgur.com/SmFb6.png" alt="adding a folder with folder references option"></p>
  
  <p>I have another apps with folders with folder references, and don't get any error..</p>
  
  <p>Resuming: If I add the folder I get the error, If I don't add a folder, the app runs without any problem..</p>
  
  <p>Could someone help me here trying to figure out whats happens (it's driving me mad).</p>
  
  <p>Thanks!</p>
  
  <p><strong>EDIT</strong>:</p>
  
  <p>I managed to mend the problem. I was adding a folder called "Resources", changing the folder name stops giving me the error.
  But I would like to know/understand why was I getting the error..</p>
  
  <p>Thanks</p>