apply osx, ios compile