提交WatchKit 1.2随播应用程序时,在验证过程中出现此错误:
ERROR ITMS-90455"无效的WatchKit应用程序包.不支持"redactedbundlename.watchkitapp"包中info.plist中的MinimumOSVersion键的值"2.1"
我在手表应用程序plist或设置中找不到MinimumOSVersion键,也没有在手机应用程序的构建设置或plist中找到.
唯一提到"2.1"相关的是我的构建设置:
有任何想法来诊断这个问题吗?
我相信我正在正确地创建交互式通知,但是我在跳板/锁定屏幕上没有按钮的情况下收到通知.我究竟做错了什么?
AppDelegate中:
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
let notificationSettings: UIUserNotificationSettings! = UIApplication.sharedApplication().currentUserNotificationSettings()
/// don't want to constantly set/re-set when this function fires
if (notificationSettings.types == UIUserNotificationType.None){
let yesAction = UIMutableUserNotificationAction()
yesAction.identifier = "yesAction"
yesAction.title = "Yes"
yesAction.destructive = false
yesAction.authenticationRequired = false
yesAction.activationMode = UIUserNotificationActivationMode.Background
let noAction = UIMutableUserNotificationAction()
noAction.identifier = "noAction"
noAction.title = "No"
noAction.destructive = false
noAction.authenticationRequired = false
noAction.activationMode = UIUserNotificationActivationMode.Background
let stopAction = UIMutableUserNotificationAction()
stopAction.identifier = "stopAction"
stopAction.title = "Stop"
stopAction.destructive …Run Code Online (Sandbox Code Playgroud)