fixing xcode project and error from xcode