Crash when open containing app from today extension
问题 I created today extension and add a button to open containing app. Inside extension view controller: @IBAction func pressed() { extensionContext?.openURL(NSURL(string:"myApp://")!, completionHandler: nil) } So, I also add URL Scheme to containing app plist: <key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleURLSchemes</key> <array> <string>myApp</string> </array> </dict> </array> Widget works fine, but when I try to press widget my app crashes inside containing app AppDelegate.swift.