ITADN

🛠️ (iOS) Swift 6.2.x compiler crash (ICE) in HybridBarcodeScannerOutput.swift — Xcode 26.x

#3785OpenRyudo3 创建于 2026-04-24
R
Ryudo3commented
### Prerequisites - [x] I have read and followed every applicable step in the [Nitro Modules Troubleshooting guide](https://nitro.margelo.com/docs/guides/troubleshooting). - [x] I have read the [VisionCamera Troubleshooting guide](https://react-native-vision-camera.com/docs/guides/troubleshooting) and [Installation guide](https://react-native-vision-camera.com/docs/guides). - [x] I did a clean build — deleted `node_modules`, `ios/Pods`, `ios/build`, and Xcode's DerivedData, then reinstalled. - [x] I searched [existing build-error issues](https://github.com/mrousavy/react-native-vision-camera/issues?q=is%3Aissue+label%3A%22%F0%9F%9B%A0%EF%B8%8F+build-error%22) and found nothing matching. ### Full build error output ```shell Command SwiftCompile failed with a nonzero exit code Please submit a bug report (https://swift.org/contributing/#reporting-bugs) 1. Apple Swift version 6.2.1 (swiftlang-6.2.1.4.8 clang-1700.4.4.1) 2. Compiling with effective version 5.10 3. While evaluating request IRGenRequest(IR Generation for file "…/react-native-vision-camera-barcode-scanner/ios/HybridBarcodeScannerOutput.swift") swift::irgen::IRGenModule::getAddrOfLLVMVariable + 136 swift::irgen::emitLazyTypeMetadata + 104 swift::irgen::IRGenerator::emitLazyDefinitions + 644 ``` ### VisionCamera version 5.0.4 ### React Native version 0.84.1 ### React Native architecture New Architecture (Fabric / bridgeless) ### Expo? Bare React Native (no Expo) ### Host macOS version macOS 15.7.3 (Sequoia) on Apple Silicon (arm64) ### Xcode version Xcode 26.2 (Build version 17C52) ### iOS Deployment Target 15.5 ### CocoaPods version 1.15.2 ### Ruby version 3.2.2 ### Build target Simulator, Physical device ### Package manager yarn (berry / pnp) ### Reproduction repository (strongly encouraged) _No response_ ### Additional context My suspicioon is that this is a compiler bug, not a source-level issue, but likely needs a workaround in how Nitrogen specs are generated. - react-native-vision-camera-barcode-scanner: 5.0.4 - react-native-nitro-modules: 0.35.4 - react-native-nitro-image: 0.13.1 - swift-frontend segfaults in emitLazyTypeMetadata during IR generation for the Nitrogen-generated C++ interop types consumed by HybridBarcodeScannerOutput.swift (inherits HybridCameraOutputSpec + NativeCameraOutput). ### Submission - [x] I pasted the full error output as text (not a screenshot). - [x] I wrote this report in my own words. I did not paste AI-generated summaries of the error.
3 条评论