UNUserNotificationCenter requires Bundle Identifier
| Originator: | kevin | ||
| Number: | rdar://27286490 | Date Originated: | 11-Jul-2016 |
| Status: | Closed | Resolved: | No |
| Product: | iOS SDK | Product Version: | 10.0 |
| Classification: | Other Bug | Reproducible: | Always |
Summary: Using UNUserNotificationCenter in a iOS framework project, I encounter the following when accessing UNUserNotificationCenter.current(). *** Assertion failure in -[UNUserNotificationCenter initWithBundleIdentifier:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UserNotifications_Sim/UserNotifications-84/UNUserNotificationCenter.m:59 *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: bundleIdentifier != nil' Steps to Reproduce: Create a iOS framework project. Invoke `UNUserNotificationCenter.current()` inside the framework. Attempt to test the framework code via XCTest Expected Results: Code will run / Test will execute Actual Results: Exception is throw (as detailed in Description) Version: Xcode Version 8.0 beta 2 (8S162m) Notes: Configuration: MacBook Pro (Retina, 15-inch, Late 2013), Mac OS 10.11.5 Attachments:
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!
"It is a requirement"
Doesn't help with testing though :-(