0

I have a directory structure on my computer i wanted to include into my app bundle:

   @"/Users/playra/Desktop/2 DivyaLoka/Собрание Тайн"; 

application starts surf folders, keeping the directory tree, which is visible in the screenshot

enter image description here

but when using the load

self.pathProperty = [[NSBundle mainBundle] resourcePath];

or

self.pathProperty = NSHomeDirectory();

structure disappears and everything is loaded into one tableView.

How to start an application starting with a folder **Собрание Тайн** that is in the sandbox keeping structure inside for further load on the device?

Bhanu
  • 1,249
  • 10
  • 17
setoffonom
  • 21
  • 2
  • Are you running the App on the device or in the simulator? The path @"/Users/playra/Desktop/" will not be available on the device. What do you mean by "tableView"? Is the screenshot from your app? It looks like "Finder". – mahal tertin Apr 02 '14 at 11:47
  • @mahaltertin Thank you for reply . Yes i run in the simulator and i know the path for not device. And i ask how to run on the device... – setoffonom Apr 02 '14 at 12:46
  • question not clear enough. Do you want to include your directory structure in the main bundle? Why do you think it is related to sandboxing? The term "architecture" seems not appropriate here. – mahal tertin Apr 02 '14 at 16:01
  • @mahaltertin Excuse me. Yes of course you are right directory structure, but i have already found the answer here http://stackoverflow.com/questions/4888208/how-to-make-an-ios-asset-bundle/5277452#5277452 I created the Bundle and put into one the folder with a directory – setoffonom Apr 02 '14 at 16:32
  • @mahaltertin But Now i cannot load the resource from a bundle. I try get it NSString *bundlePath = [[NSBundle mainBundle] pathForResource:@"meeting" ofType:@"bundle"]; NSString *filePathPdf = [[NSBundle bundleWithPath:bundlePath] pathForResource:theFileName ofType:@"pdf"]; But *filePathPdf is "nil". I tried to load on the device iPhone 5. – setoffonom Apr 02 '14 at 16:39
  • I tried to edit the question. please edit it as well including your new findings. as I see it, it has nothing to do with sandbox. and therefore i don't know an answer. – mahal tertin Apr 03 '14 at 09:07
  • @setoffonom : do you want to know how to take build ? – Vineesh TP Apr 03 '14 at 09:21
  • @mahaltertin Ok Thaks You. – setoffonom Apr 03 '14 at 13:18
  • @VineeshTP Yes. I want. – setoffonom Apr 03 '14 at 13:19

1 Answers1

0

First choose IOS Device

enter image description here

Product --> Archive

enter image description here

Choose Disribute

enter image description here

Then, Save for nterPrice or Ad-hoc Deployment

enter image description here

Then choose your certificate and Export

enter image description here

Then save the build

enter image description here

Vineesh TP
  • 7,755
  • 12
  • 66
  • 130