1 Reply
      Latest reply on Dec 30, 2019 1:06 AM by xnav
      xnav Level 1 Level 1 (0 points)

        macOS Catalina 10.15.2

        Xcode 11.3 Swift 5

         

        The following code executed in the Widget always returns 'false' in completion:

         

        extensionContext?.open(myAppUrl, completionHandler: { (success) in
          if (!success) {
          os_log("Failed to open app from Today Extension", log: OSLog.mylogs, type:.error )
        
          }

         

        The main app that contains the widget extension is in an Applications folder and can be launched  by an 'Open URL' from an Automator workflow.

        There are no error messages in the system log.  The launch attempt fails under the widget simulator and on the live Today app.  Otherwise the main app and wiidget work as expected.

        The problem looks a lot like this.

        Any suggestions are appreciated.