iOS Debug build fails: use of dynamic_cast requires -frtti (Babylon Native f4d9efb)
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 48/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- cpp, ios, react-native
- 领域
- build-system, mobile
调研方向
Start by reading the generated ReactNativeBabylon.xcodeproj Debug configuration and the CMake debug flags described in the issue. Trace how ENABLE_RTTI and NDEBUG affect the XMLHttpRequest.cpp build through napi-inl.h and jsi's Object::getHostObject<T>(). Done means the iOS Debug build compiles without breaking Release builds; the payload gives a workaround but no test or project-generation entry point.
由索引模型根据 Issue 内容生成。
描述
Environment: @babylonjs/react-native 2.0.7 (Babylon Native f4d9efb), React Native 0.81.6 (legacy architecture), Hermes, Xcode 27.1, iOS 27.0 Simulator (iPhone 17), macOS 27.0.1.
Babylon Native now compiles with -fno-rtti (ENABLE_RTTI follows ENABLE_SANITIZERS). The generated
ReactNativeBabylon.xcodeproj Debug configuration has no NDEBUG, so jsi's
Object::getHostObject<T>() keeps assert(isHostObject<T>()), which instantiates std::dynamic_pointer_cast.
XMLHttpRequest.cpp (via napi-inl.h ObjectWrap<T>::Unwrap) then fails to compile. Release builds are fine.
Workaround: regenerate the project with
-DCMAKE_CXX_FLAGS_DEBUG="-g -DNDEBUG" -DCMAKE_OBJCXX_FLAGS_DEBUG="-g -DNDEBUG".
- 主要语言
- C++
- 星标
- 437
- 派生
- 72
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
BabylonJS/BabylonReactNative 的其他 Issue
-
Docs: New Architecture is not supported; GUI text needs a font可能已有人在做 @CedricGuillemet 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 68/100
BabylonJS/BabylonReactNative#777 · 已指派 1 人 ·
-
难度 3/5 1-2 天 新手友好度 54/100
BabylonJS/BabylonReactNative#776 · 已指派 1 人 ·
-
Playground Metro fails to start: exclusionList is not a function可能已有人在做 @CedricGuillemet 今天认领。 未关闭
难度 3/5 1-2 天 新手友好度 58/100
BabylonJS/BabylonReactNative#775 · 已指派 1 人 ·
-
JS thread deadlocks in NativeEngine::SubmitCommands when an engine is disposed and a new one created quickly可能已有人在做 @CedricGuillemet 今天认领。 未关闭
难度 4/5 3-5 天 新手友好度 47/100
BabylonJS/BabylonReactNative#773 · 已指派 1 人 ·
-
难度 4/5 3-5 天 新手友好度 25/100
BabylonJS/BabylonReactNative#667 ·
查看 BabylonJS/BabylonReactNative 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
[Bug]: pip install -U cudaq-qec fails with a conflict that names cudaq-qec itself可能已有人在做 @fedonman 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
task
难度 2/5 1-3 小时 新手友好度 76/100
SparseLinearAlgebra/spla#316 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 3 天内回复