fixed xcode issue that did not allow building with simulator