"This app is not allowed to query for scheme cydia" IOS9 error "This app is not allowed to query for scheme cydia" IOS9 error ios ios

"This app is not allowed to query for scheme cydia" IOS9 error


First solution:-just add bellow code in your info.plist

<key>NSAppTransportSecurity</key><dict>    <key>NSAllowsArbitraryLoads</key>    <true/></dict>

Second solution:-

Any app built with SDK 9 needs to provide a LSApplicationQueriesSchemes entry in its plist file, declaring which schemes it attempts to query.

<key>LSApplicationQueriesSchemes</key><array> <string>urlscheme</string> <string>urlscheme2</string> <string>urlscheme3</string> <string>urlscheme4</string></array> 

Assuming two apps TestA and TestB. TestB wants to query if TestA is installed. "TestA" defines the following URL scheme in its info.plist file:

<key>CFBundleURLTypes</key><array>    <dict>        <key>CFBundleURLSchemes</key>        <array>            <string>testA</string>        </array>    </dict></array>

The second app "TestB" tries to find out if "TestA" is installed by calling:

[[UIApplication sharedApplication]                    canOpenURL:[NSURL URLWithString:@"TestA://"]];

But this will normally return NO in iOS9 because "TestA" needs to be added to the LSApplicationQueriesSchemes entry in TestB's info.plist file. This is done by adding the following code to TestB's info.plist file:

<key>LSApplicationQueriesSchemes</key><array>    <string>TestA</string></array>


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

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...

"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"

Link: http://awkwardhare.com/post/121196006730/quick-take-on-ios-9-url-scheme-changes


Delete the Splunk Mint framework if you have it added in the project because Xcode 7 does not support the framework.

Also add this key to your .plist :

<key>NSAppTransportSecurity</key><dict>    <key>NSAllowsArbitraryLoads</key>    <true/></dict>