要想在Xcode7里面找到沙盒,访问路径改为:

/Users/username/Library/Developer/CoreSimulator/Devices/cryptic number/data/Containers/Data/Application/cryptic number

或者用下面的oc方法打印出路径:

NSLog(@"Documents Directory: %@", [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject]);