Commit 4a0dde9a authored by Alf Watt's avatar Alf Watt

Better debug messages

TODO about not linking resources in from debug
parent a6d040db
......@@ -95,6 +95,8 @@ NSString* const ILPlistType = @"plist";
NSDictionary* liveInfo = nil;
NSDictionary* staticInfo = [fm attributesOfItemAtPath:staticPath error:nil];
// XXX check for Developer/Xcode/DerivedData in the staticPath
// does the live bundle path exist?
if( [fm fileExistsAtPath:liveResourcePath isDirectory:nil]) {
liveInfo = [fm attributesOfItemAtPath:liveResourcePath error:nil];
......@@ -107,14 +109,14 @@ NSString* const ILPlistType = @"plist";
}
if( ![fm createSymbolicLinkAtPath:liveResourcePath withDestinationPath:staticPath error:nil]) {
NSLog(@"ERROR in livePathForResrouce can't link: %@ -> %@ error: %@", staticPath, liveResourcePath, error);
NSLog(@"ERROR in livePathForResrouce can't link after removing: %@ -> %@ error: %@", staticPath, liveResourcePath, error);
return staticPath;
}
}
}
else { // if not, just link in the static path
if( ![fm createSymbolicLinkAtPath:liveResourcePath withDestinationPath:staticPath error:&error]) {
NSLog(@"ERROR in livePathForResrouce can't link: %@ -> %@ error: %@", staticPath, liveResourcePath, error);
NSLog(@"ERROR in livePathForResrouce can't link: %@ -> %@ error: %@ info: %@", staticPath, liveResourcePath, error, staticInfo);
return staticPath;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment