fixed problems with building iOS version