title: Custom URI Scheme "Unsupported URL"
body: <p>Below is my info.plist and I have registered a Custom Application Query Scheme URI..</p>
  
  <p>When I do an OAuth callback with <code>redirect_uri=myapplication://oauthcallback</code> on the Simulator or Device, I get: </p>
  
  <pre><code>Task &lt;CC539C38-4191-48BB-B126-E41BCE28151B&gt;.&lt;6&gt; load failed with 
  error Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" 
  UserInfo={NSLocalizedDescription=unsupported URL, 
  NSErrorFailingURLStringKey=myapplication://oauthcallback?code=rGudk3a7c7&amp;state=state-F7AF0906-984F-47C3-841B-9A55246C3784, 
  NSErrorFailingURLKey=myapplication://oauthcallback?code=rGudk3a7c7&amp;state=state-F7AF0906-984F-47C3-841B-9A55246C3784, 
  _NSURLErrorRelatedURLSessionTaskErrorKey=(
      "LocalDataTask &lt;CC539C38-4191-48BB-B126-E41BCE28151B&gt;.&lt;6&gt;"
  ), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask &lt;CC539C38-4191-48BB-B126-E41BCE28151B&gt;.&lt;6&gt;, 
  NSUnderlyingError=0x60000253e8e0 {Error Domain=kCFErrorDomainCFNetwork Code=-1002 "(null)"}} [-1002]
  </code></pre>
  
  <p>Any ideas? Info.plist below:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
  &lt;plist version="1.0"&gt;
  &lt;dict&gt;
      &lt;key&gt;CFBundleDevelopmentRegion&lt;/key&gt;
      &lt;string&gt;$(DEVELOPMENT_LANGUAGE)&lt;/string&gt;
      &lt;key&gt;CFBundleExecutable&lt;/key&gt;
      &lt;string&gt;$(EXECUTABLE_NAME)&lt;/string&gt;
      &lt;key&gt;CFBundleIdentifier&lt;/key&gt;
      &lt;string&gt;$(PRODUCT_BUNDLE_IDENTIFIER)&lt;/string&gt;
      &lt;key&gt;CFBundleInfoDictionaryVersion&lt;/key&gt;
      &lt;string&gt;6.0&lt;/string&gt;
      &lt;key&gt;CFBundleName&lt;/key&gt;
      &lt;string&gt;$(PRODUCT_NAME)&lt;/string&gt;
      &lt;key&gt;CFBundlePackageType&lt;/key&gt;
      &lt;string&gt;APPL&lt;/string&gt;
      &lt;key&gt;CFBundleShortVersionString&lt;/key&gt;
      &lt;string&gt;1.0.0&lt;/string&gt;
      &lt;key&gt;CFBundleURLTypes&lt;/key&gt;
      &lt;array&gt;
          &lt;dict&gt;
              &lt;key&gt;CFBundleURLName&lt;/key&gt;
              &lt;string&gt;&lt;/string&gt;
              &lt;key&gt;CFBundleURLSchemes&lt;/key&gt;
              &lt;array&gt;
                  &lt;string&gt;myapplication&lt;/string&gt;
              &lt;/array&gt;
          &lt;/dict&gt;
      &lt;/array&gt;
      &lt;key&gt;CFBundleVersion&lt;/key&gt;
      &lt;string&gt;1&lt;/string&gt;
      &lt;key&gt;LSApplicationQueriesSchemes&lt;/key&gt;
      &lt;array&gt;
          &lt;string&gt;tel&lt;/string&gt;
          &lt;string&gt;myapplication&lt;/string&gt;
      &lt;/array&gt;
      &lt;key&gt;LSRequiresIPhoneOS&lt;/key&gt;
      &lt;true/&gt;
      &lt;key&gt;UILaunchStoryboardName&lt;/key&gt;
      &lt;string&gt;LaunchScreen&lt;/string&gt;
      &lt;key&gt;UIRequiredDeviceCapabilities&lt;/key&gt;
      &lt;array&gt;
          &lt;string&gt;armv7&lt;/string&gt;
      &lt;/array&gt;
      &lt;key&gt;UISupportedInterfaceOrientations&lt;/key&gt;
      &lt;array&gt;
          &lt;string&gt;UIInterfaceOrientationPortrait&lt;/string&gt;
      &lt;/array&gt;
  &lt;/dict&gt;
  &lt;/plist&gt;
  </code></pre>