What happened?
repro: #1277
UPDATED desc (using test packages):
- add Base HybridObject into
react-native-nitro-test-external
- nitrogen
- pod install
- clean build folder !!
- build -> fail
Seems like NitroTestExternal tries to find HybridBaseSpec_cxx but find it outside of own package in NitroTest since NitroTest also has its own generated HybridBaseSpec_cxx
Both packages works separately ✅
Reproduceable Code
// This is a simple `HybridObject` with just one value.
export interface Base
extends HybridObject<{ ios: 'swift'; android: 'kotlin' }> {
readonly baseValue: number
}
Relevant log output
In file included from /Users/andrejkologreev/Desktop/Dev/Playground/nitro/nitro/packages/react-native-nitro-test-external/nitrogen/generated/ios/NitroTestExternal-Swift-Cxx-Bridge.cpp:11:
/Users/andrejkologreev/Desktop/Dev/Playground/nitro/nitro/packages/react-native-nitro-test/nitrogen/generated/ios/c++/HybridBaseSpecSwift.hpp:74:35: error: field has incomplete type 'NitroTest::HybridBaseSpec_cxx'
74 | NitroTest::HybridBaseSpec_cxx _swiftPart;
| ^
/Users/andrejkologreev/Desktop/Dev/Playground/nitro/nitro/packages/react-native-nitro-test/nitrogen/generated/ios/c++/HybridBaseSpecSwift.hpp:13:29: note: forward declaration of 'NitroTest::HybridBaseSpec_cxx'
13 | namespace NitroTest { class HybridBaseSpec_cxx; }
Device
iPhone 17 physical
Nitro Modules Version
0.35.2
Nitrogen Version
0.35.2
Can you reproduce this issue in the Nitro Example app here?
Yes, I can reproduce the same issue in the Example app here
Additional information
What happened?
repro: #1277
UPDATED desc (using test packages):
react-native-nitro-test-externalSeems like
NitroTestExternaltries to findHybridBaseSpec_cxxbut find it outside of own package inNitroTestsinceNitroTestalso has its own generatedHybridBaseSpec_cxxBoth packages works separately ✅
Reproduceable Code
Relevant log output
Device
iPhone 17 physical
Nitro Modules Version
0.35.2
Nitrogen Version
0.35.2
Can you reproduce this issue in the Nitro Example app here?
Yes, I can reproduce the same issue in the Example app here
Additional information