Change std::fs::copy
to use copyfile
on MacOS and iOS
#58901
Merged
std::fs::copy
to use copyfile
on MacOS and iOS
#58901