didAppear() and willDisappear() no longer called

Originator:brettohland
Number:rdar://22645279 Date Originated:10-Sep-2015 01:24 PM
Status:Open Resolved:
Product:Apple Watch Product Version:watchOS 2
Classification: Reproducible:Always
 
In some cases didAppear will not be called.

import WatchKit
import Foundation


class InterfaceController: WKInterfaceController {

    override init() {
        let x = 1      // This line will work, didAppear() will be called
        let x = "\(1)" // This line will not work, didAppear() is not called
        print("hello") // This line will not work, didAppear() is not called
        super.init()
    }
    
    override func didAppear() {
        print("didAppear()")
    }

}

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!