cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted

Xcode: Build error with ObjectiveDropboxOfficial framework

Explorer | Level 3

Hi,

I am getting a build error when building the ObjectiveDropboxOfficial framework. I use Carthage to build both iOS and Mac builds and link them into my project, just as instructed on the readme file. I get this error when I build my iOS app target:

 

While building module 'ObjectiveDropboxOfficial' imported from Classes/MyDropboxNewManager.h:13:
In file included from <module-includes>:1:
Carthage/Build/Mac/ObjectiveDropboxOfficial.framework/Headers/ObjectiveDropboxOfficial.h:32:9: fatal error: 'ObjectiveDropboxOfficial/DBSDKImports-iOS.h' file not found
#import <ObjectiveDropboxOfficial/DBSDKImports-iOS.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

In file included from /Users/zs/Documents/Git/branches/CJ-400/SimpleList/Classes/CloudKitTeamBrowserViewController.m:11:
In file included from Classes/MoreOptionsTableController.h:14:
Classes/DropboxNewManager.h:13:9: fatal error: could not build module 'ObjectiveDropboxOfficial'
#import <ObjectiveDropboxOfficial/ObjectiveDropboxOfficial.h>
 ~~~~~~~^

 

What's strange is that I am building for the iOS target, but it's looking in Carthage/Build/Mac/ObjectiveDropboxOfficial.framework for the header files. Sure enough, if I delete the "Carthage/Build/Mac" directory, the iOS target starts building fine! But it's cumbersome to have to run 'carthage update' every time I want to run the Mac app target, and then remember to delete it again before running my iOS target. 

Can someone suggest a solution for this problem? 

 

 

1 Reply 1
Highlighted

Re: Xcode: Build error with ObjectiveDropboxOfficial framework

Dropboxer
Dropboxer

It sounds like your iOS build configuration might be accidentally referencing to the Carthage/Build/Mac directory.  Can you double check your iOS build configuration and verify the dropbox library was copied from Carthage/Build/iOS and the build phase is also conigured for Carthage/Build/iOS

Polls
Do you know how to organize your files and folders?
We have created a guide on folder best practice, so you can get organized now check it out here.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?