Closed billyjacoby closed 9 months ago
Same issue +1
Hey,
Can you try running git clean -xdf visionos
to remove build folders and cache from visionOS folder.
And then rerun pod install. You might also need to remove and install node_modules
Let me know if this fixes the issue
Same issue in @callstack/react-native-visionos@0.73.4, in version @callstack/react-native-visionos@0.73.3 works normally
Hey,
Can you try running
git clean -xdf visionos
to remove build folders and cache from visionOS folder.And then rerun pod install. You might also need to remove and install node_modules
Let me know if this fixes the issue
This doesn't fix it. I ran git clean -xdf visionos
and yarn cache clean
and deleted node_modules before trying again too.
Can you try if it's reproducible in a freshly initialised project?
Can you try if it's reproducible in a freshly initialised project?
Yeah I actually tried in a brand new project on 2 different machines before posting the issue.
I'm also reproducing on a new project, can't downgrade and re-init either since I can't find what's being persisted
Same for me
Hey folks, was just a code generation issue. Had the same problem... 'FBReactNativeSpec_visionOS/FBReactNativeSpec_visionOS.h' should be 'FBReactNativeSpec/FBReactNativeSpec.h'. The updated header already has the appropriate code updates. Doing that cleared the error for me and I can launch XR immersions.
Hey folks, was just a code generation issue. Had the same problem... 'FBReactNativeSpec_visionOS/FBReactNativeSpec_visionOS.h' should be 'FBReactNativeSpec/FBReactNativeSpec.h'. The updated header already has the appropriate code updates. Doing that cleared the error for me and I can launch XR immersions.
Confirmed, this worked for me too!
@JeffreyCastellano Did you have to create that Alert from SwiftUI? I'm trying to figure out if the current XR implementation only allows for immersive content from Swift. And if so you would mind sharing the code you've got here from the App.swift file?
I'm super new to Swift and trying to dip my toes in for VisionOS dev specifically
Alert is coming from React Native...its worth noting they may change the way that file is coming in to better support react native since the other devices won't have that XR profile but at least temporarily this solved it for me.
Hey!
I've released new version 0.73.4-1
with the fix. Let me know if this solves the issue
Confirmed that this fixes it!
Description
When trying to compile and run the example XR app, the process fails with the error
'FBReactNativeSpec_visionOS/FBReactNativeSpec_visionOS.h' file not found
Steps to reproduce
React Native Version
0.73.4
Affected Platforms
Other (please specify)
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/billyjacoby/callstack-visionos-repro
Screenshots and Videos
No response