fix iOS simulator with Xcode 6