I'm upgrading my watchOS 1 app to watchOS 2 and noticed there's a ExtensionDelegate
class in new watchOS 2 targets. I tried adding this file to my watchOS 1 app (after updating the deployment version), but it's not hitting the break point in applicationDidFinishLaunching
.
Here's what my class looks like:
import WatchKit
class ExtensionDelegate: NSObject, WKExtensionDelegate {
func applicationDidFinishLaunching() {
// Perform any final initialization of your application.
print("applicationDidFinishLaunching for watchOS")
}
func applicationDidBecomeActive() {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
func applicationWillResignActive() {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, etc.
}
}
Is there more to just adding the file, or did I not upgrade properly?