Updated Xcode sample