XCode script needs work