add more error for ios script