<?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 Re: Can't import Dropbox API into Swift in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-import-Dropbox-API-into-Swift/m-p/92596#M2820</link>
    <description>&lt;P&gt;Then that sounds like something in the Build settings.  You've got #import &amp;lt;Dropbox/Dropbox.h&amp;gt; in the bridging header...I assume the naming of the bridging header follows Apple's convention.  You might try to import another objC header in your bridging header and just make sure it is, in fact, bridging.  And if you open up the Dropbox.framework file in your project, do you see a Headers folder with 19-20 .h files in it, including DBAccountManager?  An in your Target, General settings you have Dropbox, QuartzCore, SystemConfiguration, CFNetwork, and Security? (Some of these might not be needed for Dropbox, but it's what I'm using.) There could also be a build setting you need to turn on, but I'm not sure which one.&lt;/P&gt;</description>
    <pubDate>Sun, 12 Apr 2015 10:42:53 GMT</pubDate>
    <dc:creator>Jay H.14</dc:creator>
    <dc:date>2015-04-12T10:42:53Z</dc:date>
    <item>
      <title>Can't import Dropbox API into Swift</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-import-Dropbox-API-into-Swift/m-p/92592#M2816</link>
      <description>&lt;P&gt;I followed the instructions at &lt;A href="https://www.dropbox.com/developers/sync/sdks/ios" rel="nofollow noreferrer" target="_blank"&gt;https://www.dropbox.com/developers/sync/sdks/ios&lt;/A&gt; to setup the SDK and &lt;A href="https://blogs.dropbox.com/developers/2014/09/swift-apps-with-dropbox/" rel="nofollow noreferrer" target="_blank"&gt;https://blogs.dropbox.com/developers/2014/09/swift-apps-with-dropbox/&lt;/A&gt; to import it into Swift with #import &amp;lt;Dropbox/Dropbox.h&amp;gt;. I get an unresolved identifier error for DBAccountManager in the AppDelegate, so it seems as if the framework isn't being imported. I made sure to add the other required frameworks. The Dropbox framework file is inside the project folder, and I created the URL scheme.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:43:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-import-Dropbox-API-into-Swift/m-p/92592#M2816</guid>
      <dc:creator>Dan T.8</dc:creator>
      <dc:date>2019-05-29T09:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can't import Dropbox API into Swift</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-import-Dropbox-API-into-Swift/m-p/92593#M2817</link>
      <description>&lt;P&gt;Hmmm.  Not sure if it will help or not, but here's my AppDelegate code...&lt;/P&gt;

&lt;P&gt;func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -&amp;gt; Bool {&lt;BR /&gt;
        // Override point for customization after application launch.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    /***** code added to support DropBox integration *****/

    var accountManager = DBAccountManager(appKey: &amp;lt;myKey&amp;gt;, secret: &amp;lt;mySecret&amp;gt;)
    DBAccountManager.setSharedManager(accountManager)

    network.startNotifier()

    return true
}

/***** code added to support DropBox integration *****/

func application(application: UIApplication, openURL url: NSURL, sourceApplication: String?, annotation: AnyObject?) -&amp;gt; Bool {

    var account = DBAccountManager.sharedManager().handleOpenURL(url)

    if account != nil {
        return true
    }

    return false
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 12 Apr 2015 10:28:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-import-Dropbox-API-into-Swift/m-p/92593#M2817</guid>
      <dc:creator>Jay H.14</dc:creator>
      <dc:date>2015-04-12T10:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can't import Dropbox API into Swift</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-import-Dropbox-API-into-Swift/m-p/92594#M2818</link>
      <description>&lt;P&gt;That's essentially what I have in my AppDelegate, but Xcode can't find DBAccountManager.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Apr 2015 10:30:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-import-Dropbox-API-into-Swift/m-p/92594#M2818</guid>
      <dc:creator>Dan T.8</dc:creator>
      <dc:date>2015-04-12T10:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can't import Dropbox API into Swift</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-import-Dropbox-API-into-Swift/m-p/92595#M2819</link>
      <description>&lt;P&gt;The network.startNotifier() method in my code sample above, BTW, has nothing to do with Dropbox&lt;/P&gt;</description>
      <pubDate>Sun, 12 Apr 2015 10:30:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-import-Dropbox-API-into-Swift/m-p/92595#M2819</guid>
      <dc:creator>Jay H.14</dc:creator>
      <dc:date>2015-04-12T10:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can't import Dropbox API into Swift</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-import-Dropbox-API-into-Swift/m-p/92596#M2820</link>
      <description>&lt;P&gt;Then that sounds like something in the Build settings.  You've got #import &amp;lt;Dropbox/Dropbox.h&amp;gt; in the bridging header...I assume the naming of the bridging header follows Apple's convention.  You might try to import another objC header in your bridging header and just make sure it is, in fact, bridging.  And if you open up the Dropbox.framework file in your project, do you see a Headers folder with 19-20 .h files in it, including DBAccountManager?  An in your Target, General settings you have Dropbox, QuartzCore, SystemConfiguration, CFNetwork, and Security? (Some of these might not be needed for Dropbox, but it's what I'm using.) There could also be a build setting you need to turn on, but I'm not sure which one.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Apr 2015 10:42:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-import-Dropbox-API-into-Swift/m-p/92596#M2820</guid>
      <dc:creator>Jay H.14</dc:creator>
      <dc:date>2015-04-12T10:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can't import Dropbox API into Swift</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-import-Dropbox-API-into-Swift/m-p/92597#M2821</link>
      <description>&lt;P&gt;I apparently had two bridging header files, so I just needed to delete the duplicate one. Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 12 Apr 2015 10:47:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-import-Dropbox-API-into-Swift/m-p/92597#M2821</guid>
      <dc:creator>Dan T.8</dc:creator>
      <dc:date>2015-04-12T10:47:39Z</dc:date>
    </item>
  </channel>
</rss>

