Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Path for simulator build

How do we find the location of the directory where we put simulator build? In my system the path is Library/Application Support/iPhone Simulator/5.0/Applications. What would be the path on someone else's system?

like image 639
Abhinav Avatar asked Feb 22 '12 22:02

Abhinav


2 Answers

You can look for a folder called Derived Data in the Projects tab in Organizer. Xcode includes index, build output and logs there. So you can find there the built binary for the Simulator and for iOS devices. You can open this folder by right clicking on the device build and selecting Show in Finder.

The folder you mentioned is the folder where Xcode puts the binaries that it passes to the simulator when you launch your app there. It is usually in the same location.

like image 126
sch Avatar answered Sep 22 '22 14:09

sch


$user$/Library/Application Support/iPhone Simulator/5.0/Applications. Or get the path using the line:

NSString *outputPath = [[NSString alloc] initWithFormat:@"%@", [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0]];

This line returns you the path to the Documents folder in your app.

like image 23
0xDE4E15B Avatar answered Sep 26 '22 14:09

0xDE4E15B