App sandbox not accessible when testing on physical device

Originator:jamie.nullriver
Number:rdar://32951246 Date Originated:23-Jun-2017 06:53 pm
Status:Dupe of 32873040 Resolved:
Product:Developer Tools Product Version:Xcode 8.3.3, 9.0
Classification:Security Reproducible:Always
 
Summary:
This is a duplicate of radar #32873040

When developing and testing my apps, I often need to see what's going on within my app's sandbox, especially in the Documents folder. I can open it up in Finder when testing on the simulator by finding the directory's path and navigating to it, but this is impossible when testing on an actual iOS device, and thus, I cannot view the contents of my app's folders.


Steps to Reproduce:
Run the following code on the iOS simulator. You will be able to access the folder on macOS, and view its contents, allowing you to better test your app. When run on a physical iOS device, there is no way to access that directory.

NSLog(@"%@", [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0]);

Expected Results:
Either be able to access the directory through Finder on macOS, or by using a dedicated tool bundled with Xcode.

Actual Results:
I am unable to access the directory.

Version:
Xcode 8.3.3, 9.0

Notes:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!