1

I have Resources folder where I have images, sfx and many other sub folders with lots of different resources. While running the app the resources that are in subfolders they cannot be found in iOS simulator, whereas the resources that are in Resources folder they are here:

~/Library/Application Support/iPhone Simulator/7.1/Applications/4BE3ED44-1E37-4CFF-A779-2D674146F5D3/HappyBoat iOS.app/ 

How to ask Xcode to pack resources in subfolders into .ipa too?

Narek
  • 38,779
  • 79
  • 233
  • 389

1 Answers1

2

To add a folder full of resources to a project select the

File / AddFiles to "HappyBoat" ...

menu item, then highlight the folder that you want to add, and click "Create folder references for any added folders"

enter image description here

user3386109
  • 34,287
  • 7
  • 49
  • 68
  • This could work, but in this case iOS simulator cannot install the app. And nothing helps. Clearing simulator files, project, nothing... Tried http://stackoverflow.com/questions/12932750/ios-simulator-failed-to-install-the-application and http://stackoverflow.com/questions/23449041/ios-simulator-failed-to-install-application – Narek Sep 06 '14 at 18:22
  • That second link indicates that the name "Resources" is not allowed. I would reset the simulator per the first link, then delete the project from organizer, close Xcode, rename your existing project directory, start a new project, and then add all the files back into the new project. Note that you can use Finder to copy the source files (including .xibs and .storyboards) from the corrupted project to the fresh project. – user3386109 Sep 06 '14 at 18:34
  • I have found a way. Just added Resources folder with "Create groupse for any added folders", removed all the content, and re-added the content with "Create folder references for any added folder". Is installed in simulator and also found the resources as you have pointed out. – Narek Sep 06 '14 at 18:47
  • That's a good method. Good to hear that you got it to work :) – user3386109 Sep 06 '14 at 19:05