callstack / react-native-visionos

A framework for building native visionOS applications using React
https://callstack.github.io/react-native-visionos-docs/
MIT License
847 stars 28 forks source link

Building with a release schema fails at runtime #130

Closed bartlomein closed 4 months ago

bartlomein commented 4 months ago

Description

Building with a debug scheme works fine, and it works at runtime Building for a release scheme builds ok, but fails at runtime immediately.

Steps to reproduce

  1. Change the scheme to release and run the application in xcode.

React Native Version

0.73.7

Affected Platforms

Other (please specify)

Output of npx react-native info

none

Stacktrace or Logs

Error: Exception in HostFunction: Unhandled JS Exception: Invariant Violation: Tried to register two views with the same name RCTText, js engine: hermes, stack:
invariant@2150:25
anonymous@21182:27
createReactNativeComponentClass@206374:19
anonymous@207970:85
loadModuleImplementation@206:13
guardedLoadModule@129:46
metroRequire@64:91
anonymous@206852:61
renderWithHooks@5147:23
updateForwardRef@5769:31
beginWork$1@7680:207
performUnitOfWork@7308:26
workLoopSync@7302:54
renderRootSync@7288:18
performSyncWorkOnRoot@7063:35
flushSyncCallbacks@4391:32
scheduleUpdateOnFiber@6884:529
updateContainer@7971:46
anonymous@8069:19
renderElement@3022:43
renderApplication@17477:26
anonymous@16836:39
runApplication@16891:23

Reproducer

none

Screenshots and Videos

Screenshot 2024-03-11 at 5 33 17 PM