Fixed XCode Mac functionality