Merge pull request #8100 from cocoscodeide/v3

fix:runtime crash when upload file to Mac/Win32
remove dependence of CoreGraphics for on mac