UIActivityViewController is a system control and should not require NSPhotoLibraryAddUsageDescription to store images

Originator:steipete
Number:rdar://34862336 Date Originated:06-Oct-2017 09:54 PM
Status:Open Resolved:
Product:iOS + SDK Product Version:iOS 11 GM
Classification:Crash/Hang/Data Loss Reproducible:Always
 
Summary:
UIActivityViewController is a system control and should not require NSPhotaoLibraryAddUsageDescription to store images.

Users know how the stock activity view controller looks and it’s very hard to fake. Yet, when the save to image action is involved, the app will crash, unless the above permission description is set in the Info.plist. This is extremely easy to miss and will cause many real-world crashers and surprises. It’s not obvious that an Apple-provided stock control needs user-provided permission settings. 

Steps to Reproduce:
Share an image via UIActivityViewController in a sample app without NSPhotoLibraryAddUsageDescription on iOS 11 and observe the crash.

Expected Results:
Either do not show the activity or green-light it. Crashing is bad.

Actual Results:
Crash, something like https://twitter.com/steipete/status/915977224523837440

Version:
iOS 11 GM

Notes:
I filed a similar radar last year for iOS 10, without response. rdar://31148201

Please get this right. Crashers like this are very frustrating for users and easy to miss.

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!