fix authorize-ios (fix #1499)