Open mendozammatias opened 1 month ago
:warning: | Newer Version of React Native is Available! |
---|---|
:information_source: | You are on a supported minor version, but it looks like there's a newer patch available - 0.74.5. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |
:warning: | Newer Version of React Native is Available! |
---|---|
:information_source: | You are on a supported minor version, but it looks like there's a newer patch available - undefined. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |
I've checked this issue and unfortunately, I think it's not possible with the current implementation of the CLI.
If you take a look at this line in React Native CLI, it's trying to resolve the path without taking into account that the react-native directory can be in a different place: https://github.com/react-native-community/cli/blob/6a61d5dcc99c6430b74c1095e05ffb315909b078/packages/cli-platform-ios/native_modules.rb#L25
Probably this is something that can be adjusted. WDYT @thymikee @szymonrybczak @tmisiukiewicz?
Description
I'm trying to integrate React Native with an existing iOS app but since it's a big running application, I need to have the React Native codebase separated so the iOS project cannot be a subfolder of the React Native application.
When running
pod install
, this error appears:This is how it looks like my Podfile.
While debugging, I've found the issue is in this file:
react-native/node_modules/@react-native-community/cli-platform-ios/native_modules.rb
.The value from
cli_resolve_script
cannot resolve the correct route.Replacing the line
with
produces this value for
cli_bin
:Is it possible to run iOS not as a subfolder of the React Native project or am I missing something?
Steps to reproduce
npm install
insidereact-native
foldercd ios-app && pod init
.pod install
insideios-app
folder.React Native Version
0.74.4
Affected Platforms
Runtime - iOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/mendozammatias/ios-brownfield
Screenshots and Videos
No response