I am trying to write unit tests for code that works directly with EventKit. For this, an info.plist entry is required to describe the reason for accessing the calendar in the same way as you need to do to access cameras, GPS, etc.
I added an appropriate entry for testing target info.plist, but I get a runtime error:
2016-10-13 20:07:18.477916 myapp[18252:6774056] [access] This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app Info.plist must contain an NSCalendarsUsageDescription key with a string value explaining to the user how the app uses this data
As mentioned here , it seems like unit tests are running in a harness. However, test projects do receive the info.plist file, but this is not the "main" info.plist. Is there any way to overcome this problem? How is unit test code for people who speak with EventKit, or work with location?
source
share