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

Hermes iOS not building with use_frameworks! #548

Closed
1 task done
bhishakBitcanny opened this issue Jul 9, 2021 · 10 comments
Closed
1 task done

Hermes iOS not building with use_frameworks! #548

bhishakBitcanny opened this issue Jul 9, 2021 · 10 comments
Labels
bug Something isn't working

Comments

@bhishakBitcanny
Copy link

bhishakBitcanny commented Jul 9, 2021

Bug Description

I have created a new project and trying to build it with Hermes enabled. When I try without use_frameworks! mentioned in podfile application builds fine. But after mentioning use_frameworks! I get the following error mentioned in the attached screenshot. Is there a way to build with use_frameworks!?

  • I have run gradle clean and confirmed this bug does not occur with JSC

Hermes version:
React Native version (if any): 0.64.2
OS version (if any): 11.4 macOS Big Sur
Xcode version: 12.5.1

Steps To Reproduce

  1. Create a new RN project
  2. Make sure hermes is enabled :hermes_enabled => true
  3. Add use_frameworks! under target
  4. Build and face the error

code example:
Screenshot 2021-07-09 at 3 14 48 PM

The Expected Behavior

Successfully build with hermes enabled also with use_frameworks!

@bhishakBitcanny bhishakBitcanny added the bug Something isn't working label Jul 9, 2021
@lethienhung
Copy link

I've the same issue

@Huxpro
Copy link
Contributor

Huxpro commented Jul 9, 2021

Thanks for reporting. This is a known problem. But TBH I'm not sure what's the plan to fix it (0.65 doesn't seem to fix it).

cc @Titozzz and @grabbou who may have some more contexts.

@Titozzz
Copy link
Contributor

Titozzz commented Jul 9, 2021

From what I know for now:
Hermes is broken with useframeworks on 0.64 and 0.65 ( but the error is not the same ) and Hermes is broken with flipper as indicated inside the podfile when you generate a new project. I personally haven't had time to really use hermes on iOS yet.

I'm not using useframeworks at all so I'm not sure what is the issue here.

But I think working on compatibility with flipper could be nice. IIRC the issue is with RSocket

@WVinsmoke1997
Copy link

use_frameworks!?

@bhishakBitcanny
Copy link
Author

Thanks, @Titozzz, and @Huxpro for the info.

@marf
Copy link

marf commented Sep 7, 2021

Hello, any news for a fix ?

We want to use Hermes but also need to keep use_frameworks! which is needed for some libraries we use.

Thanks!

@mjmasn
Copy link

mjmasn commented Nov 8, 2021

Seems to still be an issue in React Native 0.66 (get this error facebook/react-native#32451)

@romanbarzyczakgelato
Copy link

Hi,
Any updates about it? Is it gonna be fixed?

@Gu1K
Copy link

Gu1K commented Mar 31, 2022

Hello, Any updates about it?

@jpporto
Copy link
Contributor

jpporto commented Mar 31, 2022

Hi,

Thanks for bringing our attention to this. It turns out this is an RN issue, not a hermes one, so I'll close this bug.

The RN team is currently investigating a fix for this. If you want more updates please open an issue on https://github.com/facebook/react-native.

John Paul

@jpporto jpporto closed this as completed Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

10 participants