fix ios compile issue