I'm trying write unit tests for code that works directly against EventKit. This requires an info.plist entry to describe the reason for needing access to the calendar just like you need to do for Camera access, GPS, etc.
I had added the appropriate entry to test 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's 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 that unit tests run in a harness. However test projects do get an info.plist file but it's not the "main" info.plist. Is there some way to get past this issue? How do folks unit test code that talks to EventKit or does Location work?