Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Brendan D.
10 years agoExplorer | Level 4
OS X 10.11 bitcode support for Dropbox Sync API?
Hi,
I know that the Dropbox Sync API is deprecated, but would you be able to make a build for OS X 10.11 which has the bitcode flag enabled?
I'm getting the following error (and lots of them) when I compile with Xcode 7 now:
ld: warning: URGENT: all bitcode will be dropped because '/Users/brendan/Projects/tapforms-ios/Pods/Dropbox-Sync-API-SDK/dropbox-ios-sync-sdk-3.1.2/Dropbox.framework/Dropbox(value.o)' was built without bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. Note: This will be an error in the future.
Thanks,
Brendan
34 Replies
Replies have been turned off for this discussion
- Brendan D.10 years agoExplorer | Level 4
Well at first it was because I thought it was required if you had also a WatchKit app and I didn't realize you could set that independently of the rest of the app. Plus when I first started using Xcode 7 at about the time I submitted the original post in this thread, I was receiving a ton of compile time errors because Dropbox Sync didn't support Bitcode. But I guess if it's optional then that's ok. I just didn't want Apple to reject my app update for not having it.
- Steve M.10 years ago
Dropbox Staff
Definitely let us know if Apple rejects your app due to a lack of bitcode support. (If it turns out to be a requirement, we'll likely add bitcode support to the SDK.) Thanks for bearing with us through this!
- Bob S.1510 years agoCollaborator | Level 9
Hi I am having to recompile my app for iOS 9 and am getting this error. I didn't know you were stopping support for the Sync library. Ugh is it hard to replace the old with the new? I don't need any fancy capabilities just the basic functionality of what the old library provided.
- stef m.10 years agoNew member | Level 1
+1
- Greg-DB10 years ago
Dropbox Community Moderator
Bob, I'm sorry the Sync SDK deprecation caught you off guard. We wanted to give developers as much warning as possible of course, so we ran an email campaign when it was announced, but it sounds like you never saw or got it (e.g., perhaps it got filtered from your inbox). In any case, you can find the full information here: https://blogs.dropbox.com/developers/2015/04/deprecating-the-sync-and-datastore-apis/
The specifics of migrating will depend heavily on how and to what extent your app uses the Sync SDK. If you run in to any issues of course, just let us know and we'll be happy to help.
- Bob S.1510 years agoCollaborator | Level 9
Hi Gregory,
Ha -- now that I look at the documentation, it is not the Sync API I am using but the original API from 2010! I figured that it would stop being supported eventually. For years I have gotten the warning that [[self restClient] uploadFile: toPath: fromPath:] was deprecated, but there didn't ever seem to be a simple replacement for it.
Is there anything special I should know if I am going to be updating from that old API?
- Bob S.1510 years agoCollaborator | Level 9
Hi Gregory,
Ha -- now that I look at the documentation, it is not the Sync API I am using but the original API from 2010! I figured that it would stop being supported eventually. For years I have gotten the warning that uploadFile: toPath: fromPath: was deprecated, but there didn't ever seem to be a simple replacement for it.
Is there anything special I should know if I am going to be updating from that old API?
- Greg-DB10 years ago
Dropbox Community Moderator
Oh, great! We haven't released an update to the iOS Core SDK with bitcode, but if you need bitcode support for the Core SDK, you can add the source directly, since it's open source. There's a thread about this for the Core SDK here:
https://www.dropboxforum.com/hc/en-us/community/posts/204352929-Need-Bitcode-Framework
- Bob S.1510 years agoCollaborator | Level 9
Was that a sarcastic 'great'? Isn't that sort of bad that I am still on the API from 2010?
For now I just turned Bitcode support off in my projects, my apps are super small anyway so it wouldn't make much difference. I've submitted my update using the still-working ancient API calls. But I guess I need to get to work on another update which incorporates the modern API.
- Greg-DB10 years ago
Dropbox Community Moderator
Sorry, no sarcasm intended. I just meant it was great that you won't have to do the work to migrate off of the Sync SDK.
To clarify though, both the Core SDK and Sync SDK are built on v1 of the Core API, which is still supported. It's just the client-side Sync SDK itself that is deprecated, so you don't have any migration work to do right now.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!