updated xcode osx sample