modify the errors on IOS platform