fix ios compile