Updated sample apps for iOS and OSX.