<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Xcode 9 simulator DropboxClientsManager.authorizeFromController failing. in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-9-simulator-DropboxClientsManager-authorizeFromController/m-p/255948#M14822</link>
    <description>&lt;P&gt;Using SwiftyDropbox 4.3.0 on iOS.&lt;/P&gt;&lt;P&gt;I'm trying to link my app to my Dropbox account on the latest iOS simulator and it is failing with the following errors:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;-canOpenURL: failed for URL: "dbapi-2://1/connect" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;-canOpenURL: failed for URL: "dbapi-8-emm://1/connect" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Error -10814 (kLSApplicationNotFoundErr) says "No application in the Launch Services database matches the input criteria.". I don't have the Dropbox app installed in the simulator, so shouldn't it just be launching Safari?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This was previously working fine in Xcode 9.1. Things seem to still be running fine on a real device. Anyone have an idea what might be going on?&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:16:48 GMT</pubDate>
    <dc:creator>Anthony B.15</dc:creator>
    <dc:date>2019-05-29T09:16:48Z</dc:date>
    <item>
      <title>Xcode 9 simulator DropboxClientsManager.authorizeFromController failing.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-9-simulator-DropboxClientsManager-authorizeFromController/m-p/255948#M14822</link>
      <description>&lt;P&gt;Using SwiftyDropbox 4.3.0 on iOS.&lt;/P&gt;&lt;P&gt;I'm trying to link my app to my Dropbox account on the latest iOS simulator and it is failing with the following errors:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;-canOpenURL: failed for URL: "dbapi-2://1/connect" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;-canOpenURL: failed for URL: "dbapi-8-emm://1/connect" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Error -10814 (kLSApplicationNotFoundErr) says "No application in the Launch Services database matches the input criteria.". I don't have the Dropbox app installed in the simulator, so shouldn't it just be launching Safari?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This was previously working fine in Xcode 9.1. Things seem to still be running fine on a real device. Anyone have an idea what might be going on?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:16:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-9-simulator-DropboxClientsManager-authorizeFromController/m-p/255948#M14822</guid>
      <dc:creator>Anthony B.15</dc:creator>
      <dc:date>2019-05-29T09:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Xcode 9 simulator DropboxClientsManager.authorizeFromController failing.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-9-simulator-DropboxClientsManager-authorizeFromController/m-p/256045#M14827</link>
      <description>&lt;P&gt;Just a follow-up. This only seems to be happening with the iPad simulator in Xcode 9.2. I've not seen it occur when using one of the iPhone simulators. Seems kind of like an Xcode simulator bug but I can't say for sure.&lt;/P&gt;&lt;P&gt;Would appreciate if anyone else could confirm this.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2017 21:08:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-9-simulator-DropboxClientsManager-authorizeFromController/m-p/256045#M14827</guid>
      <dc:creator>Anthony B.15</dc:creator>
      <dc:date>2017-12-09T21:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Xcode 9 simulator DropboxClientsManager.authorizeFromController failing.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-9-simulator-DropboxClientsManager-authorizeFromController/m-p/256208#M14843</link>
      <description>That's correct, these 10814 errors are expected when the official Dropbox iOS app isn't installed, and the SDK should automatically fall back to processing the app authorization flow in Safari in that case. (More specifically, it should present a SFSafariViewController with the OAuth 2 app authorization flow on the Dropbox web site.)&lt;BR /&gt;&lt;BR /&gt;I just tried this in an iPad simulator with Xcode 9.2 though, and it worked for me. Can you elaborate on what does/doesn't happen for you? Does the SFSafariViewController not get presented at all? Does it happen in multiple iPad simulators? If not, you may want to try resetting that particular simulator in case it's somehow in a broken state.</description>
      <pubDate>Mon, 11 Dec 2017 16:32:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-9-simulator-DropboxClientsManager-authorizeFromController/m-p/256208#M14843</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-12-11T16:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Xcode 9 simulator DropboxClientsManager.authorizeFromController failing.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-9-simulator-DropboxClientsManager-authorizeFromController/m-p/256433#M14858</link>
      <description>&lt;P&gt;The SFSafariViewController does appear but it just seems to hang. It doesn't load the login page and doesn't even show any browser controls.&lt;/P&gt;
&lt;P&gt;I've done a little more testing and now find that this only occurs in portrait mode of all the iPad simulators. In landscape mode it works ok. About the only difference here is that I am using a UISplitViewController, but my "link" button is always in the same view controller. In either case, I initiate the authorization sequence as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;DropboxClientsManager&lt;SPAN&gt;.&lt;/SPAN&gt;authorizeFromController&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;UIApplication&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;shared&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; controller: &lt;SPAN&gt;self&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; openURL: { (url: &lt;SPAN&gt;URL&lt;/SPAN&gt;) -&amp;gt; &lt;SPAN&gt;Void&lt;/SPAN&gt; &lt;SPAN&gt;in&lt;/SPAN&gt; &lt;SPAN&gt;UIApplication&lt;/SPAN&gt;.&lt;SPAN&gt;shared&lt;/SPAN&gt;.&lt;SPAN&gt;openURL&lt;/SPAN&gt;(url)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; })&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This behavior is strange considering that all this worked correctly before Xcode 9.&lt;/P&gt;
&lt;P&gt;Thanks for the help. I'll keep experimenting.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 22:40:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-9-simulator-DropboxClientsManager-authorizeFromController/m-p/256433#M14858</guid>
      <dc:creator>Anthony B.15</dc:creator>
      <dc:date>2017-12-12T22:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Xcode 9 simulator DropboxClientsManager.authorizeFromController failing.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-9-simulator-DropboxClientsManager-authorizeFromController/m-p/256508#M14862</link>
      <description>&lt;P&gt;We've seen this happen when the controller passed in to authorizeFromController isn't the top-most controller. The solution would be to make sure that you're passing the top-most view controller when authorizing. For example, with the UISplitViewController case, it's not necessarily self. Can you check if that's what's happening in your case?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 14:39:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-9-simulator-DropboxClientsManager-authorizeFromController/m-p/256508#M14862</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-12-13T14:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Xcode 9 simulator DropboxClientsManager.authorizeFromController failing.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-9-simulator-DropboxClientsManager-authorizeFromController/m-p/256570#M14869</link>
      <description>&lt;P&gt;Hi Greg. Yes it seems you nailed it.&lt;/P&gt;
&lt;P&gt;In my case the solution is to pass the secondary (detail) VC when the UISplitViewController.displayMode is PrimaryOverlay (portrait). By passing 'self' I am passing the top-most VC in the primary view controller (a UINavigationController). Evidently this is ok when the displayMode is AllVisible (landscape).&lt;/P&gt;
&lt;P&gt;I like UISplitViewController, but it can create some interesting challenges.&lt;/P&gt;
&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 20:17:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-9-simulator-DropboxClientsManager-authorizeFromController/m-p/256570#M14869</guid>
      <dc:creator>Anthony B.15</dc:creator>
      <dc:date>2017-12-13T20:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Xcode 9 simulator DropboxClientsManager.authorizeFromController failing.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-9-simulator-DropboxClientsManager-authorizeFromController/m-p/302277#M18278</link>
      <description>&lt;P&gt;Hi, &amp;nbsp;Just in case you have the more odd version of this issue, where the pop up message just hangs, which took me about 2 weeks to uncover; I neglected to add to my AppDelegate.m, the "openURL" code; (below).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apparently the simulators would call this and hang. &amp;nbsp;On a real iPhone or iPad, a little pop up window would show up, then things would be fine. &amp;nbsp;But on the simulators after OS 10.13.6, would stop me from connecting. &amp;nbsp;The code below caused it to complete and connect.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't thank this forum and stackoverflow for all the help over the years. &amp;nbsp;what a great group of people...thanks so much.&lt;/P&gt;&lt;P&gt;- (&lt;SPAN&gt;BOOL&lt;/SPAN&gt;)application:(&lt;SPAN&gt;UIApplication&lt;/SPAN&gt; *)app openURL:(&lt;SPAN&gt;NSURL&lt;/SPAN&gt; *)url&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;options:(&lt;/SPAN&gt;NSDictionary&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;UIApplicationOpenURLOptionsKey&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;id&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt; *)options {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;DBOAuthResult&lt;SPAN&gt; *authResult = [&lt;/SPAN&gt;DBClientsManager handleRedirectURL&lt;SPAN&gt;:url];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt; (authResult != &lt;SPAN&gt;nil&lt;/SPAN&gt;) {&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt; ([authResult &lt;SPAN&gt;isSuccess&lt;/SPAN&gt;]) {&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;NSLog&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;@"Success! User is logged into Dropbox."&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;} &lt;SPAN&gt;else&lt;/SPAN&gt; &lt;SPAN&gt;if&lt;/SPAN&gt; ([authResult &lt;SPAN&gt;isCancel&lt;/SPAN&gt;]) {&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;NSLog&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;@"Authorization flow was manually canceled by user!"&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;} &lt;SPAN&gt;else&lt;/SPAN&gt; &lt;SPAN&gt;if&lt;/SPAN&gt; ([authResult &lt;SPAN&gt;isError&lt;/SPAN&gt;]) {&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;NSLog&lt;/SPAN&gt;(&lt;SPAN&gt;@"Error: %@"&lt;/SPAN&gt;, authResult);&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;return NO&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 06:39:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-9-simulator-DropboxClientsManager-authorizeFromController/m-p/302277#M18278</guid>
      <dc:creator>Lou P.6</dc:creator>
      <dc:date>2018-10-10T06:39:13Z</dc:date>
    </item>
  </channel>
</rss>

