quick fix a resource problem for copy file

error in Xcode `Xcode cannot run using the selected device.`
Merge pull request #5682 from trawor/fork

quick fix a resource problem for copy file