Xcode / iOS does not recognize NSUserActivityTypes key in Info.plist even though it exists

Originator:dloewenherz
Number:rdar://21475502 Date Originated:6/20/2015
Status:Open Resolved:
Product:Developer Tools Product Version:6.3.2 (6D2105)
Classification: Reproducible:
 
Summary:
I’m implementing Handoff in my iOS app, and even though I’m providing a NSUserActivityTypes array in my Info.plist, my app crashes when I attempt to create a new activity via [[NSUserActivity alloc] init].

Steps to Reproduce:

1. Add NSUserActivityTypes array to Info.plist, with one item in contents.
2. Attempt to create an NSUserActivity object via [[NSUserActivity alloc] init].

Expected Results:

An NSUserActivity instance will be allocated and can be used.

Actual Results:

The app crashes and I receive the following exception:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Caller did not provide an activityType, and this process does not have a NSUserActivityTypes in its Info.plist.'

Regression:

Xcode Version 6.3.2 (6D2105)
iOS 8.3 (12F70)

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!