HealthKit's Fit sample does not work on a device without non obvious setup processes

Originator:mike.akers
Number:rdar://17270550 Date Originated:11-Jun-2014
Status:Closed Resolved:
Product:Sample Code Product Version:
Classification:Other Bug Reproducible:Always
 
Summary:
HealthKit's Fit: Store and Retrieve HealthKit Data sample project does not work out of the box unless non obvious steps are taken like creating new app ids in the dev center, creating provisioning profiles, changing bundle Ids, etc. At WWDC it took about half an hour for me to get the sample running on my dev iPhone with the assistance of 2 HealthKit engineers. None of the steps we had to go through were documented in the readme file, and were only briefly mentioned during the WWDC session.

Developers expect to be able to just download the sample, load it in Xcode and run it/step through it immediately. If there are extra setup steps, at a minimum the steps should be clearly documented, and ideally Xcode will automatically help the user resolve the issues.

Steps to Reproduce:
1. Download the Fit: Store and Retrieve HealthKit Data sample from developer.apple.com/ios
2. Open the sample project in Xcode 6 beta 1
3. Change the target device to an iPhone running iOS8
4. Press the run button

Expected Results:
Project should build cleanly, deploy to the device and start running.

Actual Results:
Project builds, but when Xcode tries to run it on the device, an alert appears complaining about invalid entitlements. See attached screenshot

Version:
Fit: Store and Retrieve HealthKit Data


Notes:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!