Is app infected? Getting a lot of strange "CanOpenURL: failed" in Xcode
Hello, So this is very frustrating: When i build my app in Unity and build it for my iPhone in Xcode and runs it, I get a lot of these errors: "- error: "This app is not allowed to query for scheme" And "-canOpenURL: failed for URL:"
Below I have copied some of the many errors. My question is not so much why they come (I believe it has something to do with iOS 9 where you have to allow every the device to establish connection), but where in the world they could come from - I have no assets installed that should try to establish these connections - it almost looks like the app is infected if that is even possible.
Here are some of the errors:
2015-10-01 19:23:50.779 dogdodge[627:42730] App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file. 2015-10-01 19:23:51.163 dogdodge[627:42494] Unity Ads not ready to show ads: current zone invalid 2015-10-01 19:23:51.184 dogdodge[627:42779] Requesting Unity Ads ad plan from https://impact.applifier.com/mobile/campaigns?platform=ios&gameId=1001456&sdkVersion=1502&rawAdvertisingTrackingId=B9CEFEDF-9E0A-47C9-8DBD-3B47D45E5F07&advertisingTrackingId=1207f85699ad27b97058b3f0378d8125&trackingEnabled=0&softwareVersion=9.0.2&deviceType=iPad4,4&connectionType=wifi&encrypted=false 2015-10-01 19:23:51.222 dogdodge[627:42772] -canOpenURL: failed for URL: "fb210831918949520://" - error: "This app is not allowed to query for scheme fb210831918949520" 2015-10-01 19:23:51.241 dogdodge[627:42772] -canOpenURL: failed for URL: "fb203184016378913free://" - error: "This app is not allowed to query for scheme fb203184016378913free" 2015-10-01 19:23:51.254 dogdodge[627:42772] -canOpenURL: failed for URL: "fb370030509727912://" - error: "This app is not allowed to query for scheme fb370030509727912" 2015-10-01 19:23:51.259 dogdodge[627:42772] -canOpenURL: failed for URL: "fb353472638105393://" - error: "This app is not allowed to query for scheme fb353472638105393"
These just keeps coming. Some of them looks really strange: 2015-10-01 19:23:52.258 dogdodge[627:42772] -canOpenURL: failed for URL: "celebpokerfree://" - error: "This app is not allowed to query for scheme celebpokerfree"
CelebpokerFree? I have no idea where this is coming from.
Really hope somebody can help me here. Thanks
Anders
Are you displaying ads in your app? The urls look like they might be ad related.
I would guess that's where those messages are co$$anonymous$$g from.
FWIW, Apple added a thing in iOS 9 to prevent apps from checking more than 50 arbitrary url schemes. https://developer.apple.com/library/prerelease/ios/technotes/App-Transport-Security-Technote/
So this behavior is no longer allowed. You should contact the vendor to see if they are working on an update for this; or just disable that on iOS 9.
Answer by VioletAbstract · Feb 22 at 01:09 AM
For anyone stumbling across this page in the future, iOS does not allow custom URL schemes by default for security reasons, but Unity has an option in Player Settings for iOS, called Supported URL schemes. You can add custom schemes here and that will solve the error "This app is not allowed to query for scheme ...", hope this helps.