What happened?
After upgrading to the latest react-native-video, the iOS build fails when
react-native-nitro-image is present in the project. The project builds successfully before
installing/upgrading react-native-video. The failure occurs in the generated Nitro code during
compilation of ReactNativeVideo sources.
Build error
ReactNativeVideo-Swift-Cxx-Bridge.cpp
error 'ResizeMode.hpp' file not found
/ReactNativeVideo/nitrogen/generated/ios/ReactNativeVideo-Swift-Cxx-Bridge.cpp
Additional failures while compiling ReactNativeVideoAutolinking.mm and
ReactNativeVideo-Swift-Cxx-Bridge.cpp. The generated C++ bridge cannot locate ResizeMode.hpp.
Additional notes
- New Architecture is enabled.
- Appears related to generated Nitro code and header search paths.
- Downgrading/removing
react-native-video avoids the issue.
- The error originates from
node_modules/react-native-video/nitrogen/generated/ios/.
Could this be a compatibility issue between react-native-video's Nitro-generated code and
react-native-nitro-image, or a missing generated/header dependency in the latest release?
Steps to reproduce
- Create a new React Native 0.84.1 project.
- Install
react-native-nitro-image.
- Install the latest
react-native-video.
- Run
cd ios && pod install.
- Build the iOS application - it fails with
error 'ResizeMode.hpp' file not found.
Reproduction repository
No response
react-native-video version
7.0.0-beta.9
react-native version
0.84.1
react-native-nitro-modules version
No response
Platforms
iOS
OS version
No response
Device
No response
Architecture
New Architecture
Expo
No response
Last working version
No response
Media / source type
No response
What happened?
After upgrading to the latest
react-native-video, the iOS build fails whenreact-native-nitro-imageis present in the project. The project builds successfully beforeinstalling/upgrading
react-native-video. The failure occurs in the generated Nitro code duringcompilation of ReactNativeVideo sources.
Build error
Additional failures while compiling
ReactNativeVideoAutolinking.mmandReactNativeVideo-Swift-Cxx-Bridge.cpp. The generated C++ bridge cannot locateResizeMode.hpp.Additional notes
react-native-videoavoids the issue.node_modules/react-native-video/nitrogen/generated/ios/.Could this be a compatibility issue between
react-native-video's Nitro-generated code andreact-native-nitro-image, or a missing generated/header dependency in the latest release?Steps to reproduce
react-native-nitro-image.react-native-video.cd ios && pod install.error 'ResizeMode.hpp' file not found.Reproduction repository
No response
react-native-video version
7.0.0-beta.9
react-native version
0.84.1
react-native-nitro-modules version
No response
Platforms
iOS
OS version
No response
Device
No response
Architecture
New Architecture
Expo
No response
Last working version
No response
Media / source type
No response