Hi,
I am using URL.relative(to:) with two URLs, which both have 'file' scheme. Nevertheless I still get the error (console output) 'CFURLCopyResourcePropertyForKey failed because it was passed a URL which has no scheme'. This happens when using iOS simulator or on a real device.
Interestingly enough, I still get a result from URL.relative(to:), which seems to be correct as far as I can tell.
Sorry for any sort of confusion. For some reason I did not realise that URL.relative(to:) was my own implementation and not part of Foundation. And it is clear to me why the error occurred there. As I do not have permission to remove the topic, maybe some administrator can do that. Thanks!