“此应用程序不允许查询方案cydia” IOS9错误 [英] "This app is not allowed to query for scheme cydia" IOS9 error

查看:392
本文介绍了“此应用程序不允许查询方案cydia” IOS9错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,我点击HTTP请求

I have an app where I hit a HTTP Request

< NSURLConnection:0x12d755110> {request:< NSMutableURLRequest:0x12d754e10> {URL:http://XX.XX.XX.XXX/webService/dataService.svc/SearchLocation}}

现在,每当上面的请求我得到以下错误,并没有在响应中收到数据。 60秒后我得到超时错误。它在IOS8及以下版本上工作正常,但不适用于IOS9。谁能让我知道我还有什么与这个问题有关。
另外,我在info.plist中对iOS9的ATS进行了以下更改,但仍面临此问题。请让我知道如何解决这个问题?提前致谢。

Now, whenever the above request is made I get the following error and no data is received in the response. After 60 Sec I get "Time Out error". It is working fine on IOS8 and below but not working gin IOS9. Could anybody let me know what else have I got to do with this issue. Also, I have done the following changes regarding ATS for iOS9 in info.plist, but still facing the issue. Please let me know how to fix this? Thanks in advance.

Info.plist

Info.plist

<key>NSAppTransportSecurity</key>
    <dict>
        <key>NSAllowsArbitraryLoads</key>
        <true/>
        <key>NSIncludesSubdomains</key>
        <true/>
        <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
        <true/>
        <key>NSTemporaryExceptionMinimumTLSVersion</key>
        <string>TLSv1.1</string>
    </dict>

错误

2015-09-22 22:19:58.333 App[751:139449] regionDidChangeAnimated>>>>>>>>>>>>>>>>>: = 40.844278,-74.130561
2015-09-22 22:19:58.344 App[751:139449] Reachability Flag Status: -R ------- networkStatusForFlags
2015-09-22 22:19:58.350 App[751:139449] request:< SearchLocation ><DeviceKeyUDID>My Device UDID</DeviceKeyUDID><SecretKey>SecretKey/SecretKey><ListingType>LOCATION</ListingType><PageIndex>1</PageIndex><MaxNoOfRecords>20</MaxNoOfRecords><Latitude>40.844276</Latitude><Longitude>-74.130562</Longitude><Distance>25</Distance><Address></Address><SearchText></SearchText></SearchLocation >
2015-09-22 22:19:58.357 App[751:139449] -canOpenURL: failed for URL: "cydia://package/com.fake.package" - error: "This app is not allowed to query for scheme cydia"
2015-09-22 22:19:58.945 App[751:139449] theXML contains:
2015-09-22 22:19:58.959 App[751:139449] refreshLocationList maxRecordsSelected:::::::::::::20
2015-09-22 22:19:58.960 App[751:139449] refreshLocationList maxNumOfRecords:::::::::::::20
2015-09-22 22:19:58.960 App[751:139449] refreshLocationList LocationCount::::::::::::::0
2015-09-22 22:19:58.960 App[751:139449] isTempleMaxRecordChanged :::::::::::::0


推荐答案

这个问题只发生在iOS 9中,因为Apple做了一些影响URL方案的更改。

This problem only happens in iOS 9 since Apple made some changes impacting URL schemes.

我认为你的一个库是检查是否可以在越狱设备上运行,检查它是否可以打开cydia:// URL ...

I think that one of your libraries is checking to see if you are running on a jailbroken device by checking if it can open cydia://URL...

直到iOS 9,应用已经能够打电话给这些方法任意URL。从iOS 9开始,应用程序必须声明他们希望能够检查并在应用程序的配置文件中打开的URL方案,因为它已提交给Apple

"Up until iOS 9, apps have been able to call these methods on any arbitrary URLs. Starting on iOS 9, apps will have to declare what URL schemes they would like to be able to check for and open in the configuration files of the app as it is submitted to Apple"

链接: http:// awkwardhare。 com / post / 121196006730 / quick-take-on-ios-9-url-scheme-changes

这篇关于“此应用程序不允许查询方案cydia” IOS9错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆