Screenshot tip: Mac with screenshots shortcut key SHIFT + Command + 3, press this key combination, the picture automatically saved to the desktop.
Select the Xcode Preferences menu
Select the "Locations" option after opening
The Finder after opening
Enter the "Deriveddata" directory to find your project, executable file in "build/products" directory, such as my path
The sandbox directory of the iphone emulator, you can get the path to the current program sandbox through the following code
Gets the sandbox path
-(NSString *) gethomepath{
nsstring *path = Nshomedirectory ();
NSLog (@ "path =%@", path);
return path;
}
Path =/users/xxxxx/library/developer/coresimulator/devices/a12fb196-8ce7-443e-8986-0522c7660e92/data/containers /data/application/e91b24e9-a7cb-47ca-99c7-94ee903c7845
So how do you find this directory in the Finder? Open Finder, select Menu "Go to"-> "personal"
When clicked, open the resource pool and open
Follow the path you just printed and find it.
Of course, the path of the executable file can also be found in this way