title: NSHealthShareUsageDescription must be set in the app's Info.plist in order to request read authorization
body: <p>I have a framework that uses </p>
  
  <pre><code>_healthStore requestAuthorizationToShareTypes:writeTypes readTypes:readTypes completion:^(BOOL success, NSError *error) {
  </code></pre>
  
  <p>When I include the framework into my iOS app and put the following in my app info.plist file</p>
  
  <pre><code>&lt;key&gt;NSHealthShareUsageDescription&lt;/key&gt;
  &lt;string&gt;Read heart rate monitor data.&lt;/string&gt;
  &lt;key&gt;NSHealthUpdateUsageDescription&lt;/key&gt;
  &lt;string&gt;Share workout data with other apps.&lt;/string&gt;
  </code></pre>
  
  <p>everything works fine - not including those keys results in the following error:</p>
  
  <pre><code>Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'NSHealthShareUsageDescription must be set in the app's Info.plist in order to request read authorization.'
  </code></pre>
  
  <p>My problem is that when running the unit tests for the framework it crashes with the above error. I've put the keys in all of the info.plist files for the framework and for the test target but still get the crash.</p>
  
  <p>Which plist file should the keys go into in order to run the test target?</p>
  
  <p>(should also mention that I'm in the process of switching over to Swift3 - this is part of the project that is in Objective-C - prior to iOS10 and XCode 8 this all worked fine).</p>
  
  <p>I've created a framework with appropriate unit test to show the problem: <a href="https://github.com/asensei/HKHealthStoreFrameworkUnitTestBug" rel="noreferrer">https://github.com/asensei/HKHealthStoreFrameworkUnitTestBug</a></p>