我们有一些内部应用程序,在iOS 9之前,这些应用程序在版本比较后会打开一个类似“itms-services://”的链接,新版本的应用程序将被下载并安装。
但在 iOS 9 上测试后,我们发现应用无法打开链接“itms-services://”链接,出现类似“LaunchServices: ERROR: There is no registered handler for URL scheme itms-services”的错误
我们用来更新应用程序的代码:
let downloadUrl = NSURL(string: url)
UIApplication.sharedApplication().openURL(downloadUrl!)
我们已经测试了将“itms-services”、“itms-services://”和完整的 URL 放入 plist 文件中的“LSApplicationQueriesSchemes”中。但还是不行。

