You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Quick fix because -[AppDelegate homeDirectory] isn't working properly and it looks like the simulator stops you trying to write outside of potential iOS sandbox. Just replace this in AppDelegate.m:
- (NSString *) saveDirectory:(NSString *)subDirectory
{
NSString *saveDirectory = NSProcessInfo.processInfo.environment[@"ARTWORK_DIRECTORY"];
if (!saveDirectory)
{
saveDirectory = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject];
}
if (subDirectory)
saveDirectory = [saveDirectory stringByAppendingPathComponent:subDirectory];
if (![[NSFileManagerdefaultManager] fileExistsAtPath:saveDirectory])
{
NSError *error = nil;
BOOL created = [[NSFileManagerdefaultManager] createDirectoryAtPath:saveDirectory withIntermediateDirectories:YESattributes:nilerror:&error];
if (!created)
NSLog(@"%@\n%@", error, error.userInfo);
}
NSLog(@"Saving to: %@", saveDirectory);
return saveDirectory;
}
It logs the directory where it saves to so you can find it.
Trying to extract iOS 8 assets. Doesn't quite work.
The text was updated successfully, but these errors were encountered: