Closed bartlomein closed 5 months ago
Hey, are you running latest version of cmake? Can you also try the latest version of react native visionOS (0.73.7)?
Hmm I updated both of those and ran into another issue
The following build commands failed:
SwiftEmitModule normal x86_64 Emitting\ module\ for\ mmvisionpro (in target 'mmvisionpro' from project 'mmvisionpro')
(1 failure)
At one point it did build with no errors, just when a simulator was not selected, just a Generic Vision Pro device. I have a feeling I might have messed up some XCode setting.
Actually I think I got it! Had to add hermes to Frameworks, libraries and Embedded content here:
I'm hitting the same problem...
CMake - 3.28.3 RN-VisionOS - 0.73.7 XCode - 15.3 VisionOS - 1.1
Adding libReact-hermes.a
to Frameworks doesn't seem to resolve either
Aha! I have it compiling, disabled hermes from pods and removed the framework in Xcode..
For anyone else kicking the compiler try, and doesn't mind running without Hermes
:hermes_enabled => false,
@josh-deprogram Thanks, also got it running by disabling Hermes for now 👍
@josh-deprogram Thanks, I had disable hermes in root ios and visionos podfile and it start working. Thanks
Can you guys try out RC release? https://github.com/callstack/react-native-visionos/releases/tag/v0.74.0-rc.0-visionos
I tried out RC release version but still have same error. Any updates on this?
@15bedirhan Do you have the latest version of cmake? (3.29.0 or 3.28.4)?
@15bedirhan Do you have the latest version of cmake? (3.29.0 or 3.28.4)?
Yes my cmake version is 3.29.0.
For now I continue disabled hermes in visionos/podfile. It works after that
Okay I did some investigation together with @thiagobrez, looks like it's Logging.cpp
file from Hermes which causes those issues for some people. It must be some missing tool/library as its not happening on my Mac.
Workaround for now:
use of undeclared identifier 'vsnprintf'
in the Logs tabThe fix is coming: https://github.com/facebook/hermes/pull/1358
I'm disabling Hermes by default until the above PR gets merged. If you still want to use Hermes remove :hermes_enabled => false
from visionos/Podfile
. And do what @thiagobrez explained above. The fix should land shortly.
upstream PR merged, so this can be revisited for the next release of react-native-visionos
Hey,
This issue should now be resolved in React Native 0.74.3. Backport to 0.73.x will be available once this PR get's merged: https://github.com/facebook/hermes/pull/1432
For others who may also experience this error, we also came across this issue while using CMake version 3.28.0, recommended in the README.md.
Commenting out Hermes / Adding libReact-hermes.a didn't work for us. Fixed by updating CMake to 3.29.9 or 3.30.0
@okwasniewski if it helps, I can submit a PR to update the README and also the docs repo. And thanks for all your work, great stuff.
For others who may also experience this error, we also came across this issue while using CMake version 3.28.0, recommended in the README.md.
Commenting out Hermes / Adding libReact-hermes.a didn't work for us.
Fixed by updating CMake to 3.29.9 or 3.30.0
@okwasniewski if it helps, I can submit a PR to update the README and also the docs repo. And thanks for all your work, great stuff.
It would be great if you could create a PR, I forgot to update it.
Description
Was having issues with my build so I created a brand new one and tried to run it and getting the same error:
Stacktrace or Logs
Reproducer
none
Screenshots and Videos
No response