美文网首页
iOS 9: -canOpenURL: failed for U

iOS 9: -canOpenURL: failed for U

作者: oneDemo | 来源:发表于2015-09-17 19:40 被阅读100次

AppAvailability Bug

appAvailability.checkreturns alway error callback.

iOS 9 Error in Xcode

-canOpenURL: failed for URL: "://" - error: "This app is not allowed to query for scheme "

Explanation

Apple changed thecanOpenURLmethod on iOS 9. Apps which are checking for URL Schemes have to declare these Schemes as it is submitted to Apple. The articleQuick Take on iOS 9 URL Scheme Changesexpains the changes in detail.

Solution: Add URL Schemes to the Whitelist

Simply open your app's .plist (usuallyplatforms/ios//-Info.plist)with an editor and add the following code with your needed Schemes.

eg:

相关文章

网友评论

      本文标题:iOS 9: -canOpenURL: failed for U

      本文链接:https://www.haomeiwen.com/subject/lpybcttx.html