Re: NSFileManager copyItemAtPath:toPath:error: error on 10.6
Re: NSFileManager copyItemAtPath:toPath:error: error on 10.6
- Subject: Re: NSFileManager copyItemAtPath:toPath:error: error on 10.6
- From: Gideon King <email@hidden>
- Date: Tue, 15 May 2012 14:44:18 +1000
OK, I have looked at the user info dictionary of the error, and see the file that is causing the problem:
UserInfo: {
NSDestinationFilePath = "/Users/gideon/Library/Application Support/NovaMind 5/NovaMind 5 5.3.0/NovaMind5.app/Contents/Resources/ruby/lib/libruby-static.a";
NSFilePath = "/Volumes/DEDB91B6-6EA0-4AE2-B038-94056AD36D54/NovaMind5.app/Contents/Resources/ruby/lib/libruby-static.a";
NSUserStringVariant = Copy;
}
Using the file command, I get the following information:
libruby-static.a: Mach-O universal binary with 1 architecture
libruby-static.a (for architecture i386): current ar archive random library
And ls -l@ tells me:
-rw-r--r--@ 1 gideon staff 8359196 15 May 11:13 libruby-static.a
com.apple.cs.CodeDirectory 123
com.apple.cs.CodeRequirements 12
com.apple.cs.CodeSignature 4371
I have not changed anything about this file or how it is processed during builds, since the last version that worked.
I see that the old version of Sparkle I was using used to use FSCopyObjectSync to copy the files, and that seemed to work, so I have just put something in so that if using 10.7 or later, it uses NSFileManager, and on 10.6 it uses FSCopyObjectSync - at least that gets me something that works quickly, but if anyone knows why this might fail when using NSFileManager's method on 10.6, I'd be keen to know...
Regards
Gideon
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden