Abhinav
Abhinav

Reputation: 38152

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?

Upvotes: 5

Views: 7122

Answers (5)

mohsen
mohsen

Reputation: 5058

you can use Xcode Command to find it just pause your project and type po NSHomeDirectory() like below picture

enter image description here

Upvotes: 3

Dima Belyaev
Dima Belyaev

Reputation: 36

Try this

NSLog(@"%@", NSHomeDirectory());

or

[NSHomeDirectory() stringByAppendingPathComponent: @"Documents"];

Upvotes: 1

sch
sch

Reputation: 27506

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.

Upvotes: 8

0xDE4E15B
0xDE4E15B

Reputation: 1294

$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.

Upvotes: 5

Eric
Eric

Reputation: 4061

right click on the finish product and say "show in finder"

Upvotes: -1

Related Questions