Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SPErrorGizmoInstallNeverFinishedErrorMessage in Watchkit

I am running a watchkit app which uses app groups and I can't seem to get it running at all. Anytime I try and run the app I get an alert which says "SPErrorGizmoInstallNeverFinishedErrorMessage". The code in my glance controller is relatively short.

let sharedGroupName = NSBundle.mainBundle().objectForInfoDictionaryKey("Shared Group") as! String

var sharedDefaults:NSUserDefaults!

override func willActivate() {

    super.willActivate()

    sharedDefaults = NSUserDefaults(suiteName: sharedGroupName)

    var timer = NSTimer.scheduledTimerWithTimeInterval(1.0, target: self, selector: Selector("update"), userInfo: nil, repeats: true)

}

func update() {

    println(sharedDefaults?.valueForKey("timeMessage") as! String)

}

The code in my ViewController.swift is short as well also just setting this share defaults object:

let sharedGroupName = NSBundle.mainBundle().objectForInfoDictionaryKey("Shared Group") as! String
var sharedDefaults:NSUserDefaults!
sharedDefaults?.setObject(timeMessage.text, forKey: "timeMessage")
sharedDefaults?.synchronize()

This error is preventing me from running any watchkit app at all. Not the main app or the glance or notification. I have one app group which is listed in the info.plist. I have a custom build setting to the app groups name. Any help would be greatly appreciated.

like image 317
Johnston Avatar asked Feb 24 '15 21:02

Johnston


3 Answers

I fixed this issue by going to the simulator's watch companion app, unchecking the installation for the watch app, then turning it back on. Nothing else worked.

like image 198
akaru Avatar answered Oct 17 '22 19:10

akaru


The only thing that worked for me was to Reset Content and Settings in the simulator. Toggling the watch app off and on in the Apple Watch settings app didn't do it for me.

like image 11
Oran Dennison Avatar answered Oct 17 '22 17:10

Oran Dennison


From reading other Apple Developer forum messages, SPErrorGizmoInstallNeverFinishedErrorMessage seems to occur when the Watch App info.plist has an invalid setting.

I was trying different versions of WKCompanionAppBundleIdentifier and that was my error. When I deleted the copied line, that worked again.

like image 10
Romain Avatar answered Oct 17 '22 18:10

Romain