All the code runs, but I get the following in the log:
[default] [ERROR] Failed getting container for URL: file:///Users/XXXXXXXXXXXX/Desktop/, error: Error Domain=BRCloudDocsErrorDomain Code=2 "Logged out - iCloud Drive is not configured" UserInfo={NSDescription=Logged out - iCloud Drive is not configured}
NSLog(@"OK");
NSOpenPanel* openDlg = [NSOpenPanel alloc];
NSLog(@"OK");
openDlg = [NSOpenPanel openPanel];
NSLog(@"Error shows after this line of setting 'openPanel' ");
I tried to setup the App Sandbox,(eventually selecting everything in the sandbox) but that yielded more problems. The following won't load... and so the contents are nothing.
NSString *nssFilename = @"/Users/xxxxxxxx/Desktop/WordList/WordList/wordlist100.txt";
NSString *nssContents = [NSString stringWithContentsOfFile:nssFilename encoding:NSUTF8StringEncoding error:nil];
NSLog(@"Contents:%@",nssContents);