Fixed XCode source. Compiles project and runs successfully