broken device code on ios