not allowed to query for scheme iOS Origin: On your device OSI layer 7 · Application Last updated 14 Oct 2026

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

The app called canOpenURL for a scheme not listed in LSApplicationQueriesSchemes in Info.plist.

Exact message you may see This app is not allowed to query for schemecanOpenURL: failed for URL
Seen on: iOS

Meaning

Since iOS 9, apps must declare schemes they query (up to 50). open(_:) works without it, but canOpenURL returns false.

Common causes

  • Scheme missing from LSApplicationQueriesSchemes
  • Plist entry in a different target
  • Typo in the scheme name

⚡ Quick fix

  1. Add the scheme (without ://) to LSApplicationQueriesSchemes
  2. Or skip canOpenURL and call open with a completion handler

Detailed fix by platform

XML

  1. swift
    <key>LSApplicationQueriesSchemes</key>
    <array>
      <string>whatsapp</string>
      <string>comgooglemaps</string>
    </array>

How to diagnose

  1. Plist — Scheme listed?
  2. Target — Right Info.plist?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: On your device. Errors that are often confused with or caused by this one (click to open):

ATS — App Transport Security has blocked a cleartext HTTP resource load (iOS)ATSattempted to access privacy-sensitive data without a usage description — This app has crashed because it attempted to access privacy-sensitive data without a usage description (iOS)attempted to access p…built for iOS, linking for simulator — Building for iOS Simulator, but linking in object file built for iOS, for architecture arm64 (iOS)built for iOS, linkin…Cannot convert value of type — Swift: Cannot convert value of type 'X' to expected argument type 'Y' (iOS)Cannot convert value …CDN: trunk URL couldn't be downloaded — [!] CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/... (iOS)CDN: trunk URL couldn…integrity could not be verified — Unable to Install "App": This app cannot be installed because its integrity could not be verified (iOS)integrity could not b…ITMS-90683 — ITMS-90683: Missing purpose string in Info.plist (NSCameraUsageDescription etc.) (iOS)ITMS-90683not allow…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.