Hello there,
I am trying to use the photos framework from within a XCTestCase because I dont want to verify that an asset gets saved to the user's photo library when they tap on a button in our app. But app is crashing when I run the test. I did NSPhotoLibraryUsageDescription to my test target's plist but it looks like thats not the right place to add it. Here is the error I am seeing in the console:
XCTRunner[25404:8392034] [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 NSPhotoLibraryUsageDescription key with a string value explaining to the user how the app uses this data.
So it looks like I need to add NSPhotoLibraryUsageDescription to XCTRunner's plist but how do I do that? Is there an alternative?
thanks,
-Akshay