So, for a simple copy operation in my app, I use the follow NSFileManager method:
copyItemAtURL:toURL:error:
Since I retrieve the url from the pasteboard, there is a chance that the source URL is already at the destination directory in my app (that is, user copies the file in another app maybe, then does paste in my app, so srcURL and dstURL is the same). In that case, I didn't really care because I gracefully handle the file exists error, rather then preemptively checking if fileExistsAtPath before attempting the copy.
Now it seems on 10.12.4 NSFileManager copyItemAtURLtoURL: returns YES even if the file exists and gives me no error to handle. At first I thought I made some code change that caused this in between app versions because on the live version of my app my error handling code seems to be working (on 10.12.4). So I looked and my commit history but came up with no changes to this code.
But for whatever reason when compiliing on 10.12.4 I don't get an error to handle in this case. I'm still on Xcode 8.2.1.
I looked to see if any changes was documented in the release notes, but I don't see anything?
Stepped right through it in the debugger....method returns YES and the macOS logs out
open on /Users/UserName/FilePathHere File exists
But why don't I get an error to handle anymore? 😕