-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@import SwiftyDropboxObjC creates errors with Bridging headers. #425
Comments
Thanks for writing this up and submitting a sample project! I'll ask the team to look into this. |
I suspect effectively importing SwiftyDropboxObjC in the bridging header is causing some circularity when generating the bridging header, failing there. I don't immediately see anything I can do to alleviate this from our side. I think you will need some kind of workaround on your side. Instead of importing The consequence will be that you won't be able to access |
@julianlocke thank you for the detailed response. I can try the suggested workaround. Fortunately the client is in a manager which doing all the work. I will try it out. |
@julianlocke the work around works just fine. In my testing so far of adopting SwiftyDropbox I've noticed that downloadWithPath does not call its progress block. However, uploadDataWithPath does indeed call its progress block. |
@chrisvanbuskirk Thanks for the note! I'll ask the team to look into that as well. |
I imported SwiftyDropbox into my project via SPM. Migrating from dropbox-sdk-obj-c and made necessary code changes, which worked.
It will work fine until you include a header file importing SwiftyDropboxObjC in a bridging header.
@import SwiftyDropboxObjC <- module not found
If the plan is deprecate dropbox-sdk-obj-c it would be ideal to fix this to work with hybrid objc/swift projects. I haven't tried it in cocoapods which is not a solution I want.
I've included a sample project.
dropbox.zip
The text was updated successfully, but these errors were encountered: