[DF-4721] fix macos and ios