3

I'm trying to create a subfolder structure in my app following this advice:

Subdirectories within an iOS application

But I can't see (using the Organizer) a way to test whether the subfolder structure is actually achieved or not...is there a way to check, other than jailbreaking the phone and getting in through ssh?

Community
  • 1
  • 1
pland
  • 858
  • 1
  • 9
  • 17

3 Answers3

3

You can open the bundle that is installed to the simulator by navigating to:

<User Name>/Library/Application Support/iOS Simulator/<Alpha-Numeric String>/<App Name>.app'

Once you navigate to the above location (it may be .ipa, can't remember exactly) you can right click and choose Show Package Contents which will show you the contents app bundle.

WhoaItsAFactorial
  • 3,538
  • 4
  • 28
  • 45
  • My path was slightly different, with: `/Users/dpc/Library/Application\ Support/iPhone\ Simulator/5.1/Applications/5` but the above was essentially correct, and I can now see subfolders within the app, thanks! This was using XCode Version 4.4 (4F250), and iOS Simulator Version 5.1 (272.21) – pland Sep 06 '12 at 12:30
  • 1
    Glad you were able to get to the right direction. I'm not at my Mac so I was going off of memory. – WhoaItsAFactorial Sep 06 '12 at 12:33
2

If the question relates to *.ipa or *.app boundles, then you can rename them to *.zip and go from there.

Hermann Klecker
  • 14,039
  • 5
  • 48
  • 71
  • Unneccesary step on OS X. You can just right click a .ipa or .app and show the package contents. – WhoaItsAFactorial Sep 06 '12 at 12:09
  • good to know anyway though (illuminates that it's all zip), thanks Hermann. – pland Sep 06 '12 at 12:32
  • Well, that is right in principle. Especially as most iOS developers would use a Mac or at least OS-X on some hardware. But really showing the content did not always work on my old iMac and knowing this trick was quite helpful sometimes. – Hermann Klecker Sep 06 '12 at 12:59
2

At the moment, with Xcode 10 and macOS 10.14.X the path for simulators would be:

/Users/<user>/Library/Developer/CoreSimulator/Devices/<XXX>/data/Containers/Bundle/Application/<YYY>

Also, if you want to check for the previous step and check the files that would be inside the *.app(bundle) in Derived Data (to check for devices) the path would be:

~/Library/Developer/Xcode/DerivedData/
kikeenrique
  • 2,589
  • 2
  • 25
  • 46