title: LSApplicationQueriesSchemes not working in custom framework
body: <p>I have an app A and custom framework F (have podspec file). Both of it have <code>Info.plist</code>. I added framework F in app A. framework F has a function which checks whether a particular app is installed in device or not</p>
  
  <pre><code>static func isAppPresent() -&gt; Bool {
          let custURL : URL = URL(string: "myapp://")!
          return UIApplication.shared.canOpenURL(custURL)
      }
  </code></pre>
  
  <p>When the function is called I get the error </p>
  
  <blockquote>
    <p>"error: This app is not allowed to query for scheme myapp"</p>
  </blockquote>
  
  <p>given I had already added the whitelisting code in <code>Info.plist</code> of framework F</p>
  
  <pre><code>&lt;key&gt;LSApplicationQueriesSchemes&lt;/key&gt;
      &lt;array&gt;
          &lt;string&gt;myobopay&lt;/string&gt;
      &lt;/array&gt;
  </code></pre>
  
  <p>I went through the articles but found same thing everywhere. After some time of searching I added above whitelisting code in <code>Info.plist</code> of app A and now the app was working. After some debugging I found that the whitelisting code in <code>Info.plist</code> of framework F is of no use, it is making no change keeping it there.</p>
  
  <p>I dont want to share my <code>app scheme</code> with the third party user. How can I do this?</p>