我正在崩溃说我的捆绑ID是零
2016-08-31 10:39:11.630 WeatherHop[52533:17767791] * Terminating app due to uncaught exception ‘NSInternalInconsistencyException’,reason: ‘Invalid parameter not satisfying: bundleIdentifier != nil’
* First throw call stack:
它使用此代码失败:
let bundleIdentifier = Bundle.main.bundleIdentifier print("\(bundleIdentifier)") UNUserNotificationCenter.current().requestAuthorization(options: [.alert,.sound,.badge]) { (granted,error) in if granted { }....
print语句正确标识我的包ID,在$(PRODUCT_BUNDLE_IDENTIFIER)中设置
知道我为什么会收到这个错误吗?