[DF-1112] Fixed resolving ~res: for MacOS & iOS