fix build error on ios