Xcode tvOS - Error: You don’t have permission to save the file “fileName.txt” in the folder “Documents”
问题 I have an Xcode tvOS project in Objective-C. I'm trying to save a sample fileName.txt file into the Documents folder with this code: #import "ViewController.h" @interface ViewController () @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; [self applicationDocumentsDirectory]; NSString *path = [[self applicationDocumentsDirectory].relativePath stringByAppendingPathComponent:@"fileName.txt"]; NSString* sampleText = @"Prova"; NSError* err; [sampleText writeToFile