set the project to run at iOS, and fix the deprecated code