Skip to content
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

How to import using #import #493

Closed
CptFabulouso opened this issue Nov 25, 2022 · 1 comment
Closed

How to import using #import #493

CptFabulouso opened this issue Nov 25, 2022 · 1 comment
Labels

Comments

@CptFabulouso
Copy link

DFU Bootloader version (please complete the following information):

  • SDK version: [don't know]
  • Bonding used: [yes]
  • Library version: [4.11.1]

Device information (please complete the following information):

  • Device: [e.g. iPhone 14 Pro Max]
  • OS: [iOS 16.0]

Your question
We are using the DFU in React Native project. There's this package use also mention in readme and I realize it's unofficial, there's already opened issue opened this with no answers, but maybe the question also belongs here, since it's about importing and using this library?

With the newest RN version, this line @import iOSDFULibrary; throws error

Use of '@import' when C++ modules are disabled, consider using -fmodules and -fcxx-modules

using those flags breaks other things, so that can't be used. Is there a way how to use #import syntax (which I assume needs to be used)?

I tried replacing it with #import <iOSDFULibrary/iOSDFULibrary-umbrella.h>, but then I see errors here

Cannot find protocol declaration for 'DFUProgressDelegate'
Cannot find protocol declaration for 'DFUServiceDelegate'

I am not sure if that's another error or it's connected. My C(anything) and Swift knowledge is basically zero, so maybe the fix is easy and some good soul can help?

@CptFabulouso
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant