You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
# Resolve react_native_pods.rb with node to allow for hoistingrequirePod::Executable.execute_command('node',['-p','require.resolve( "../react-native/node_modules/react-native/scripts/react_native_pods.rb", {paths: [process.argv[1]]}, )',__dir__]).stripplatform:ios,min_ios_version_supportedprepare_react_native_project!linkage=ENV['USE_FRAMEWORKS']iflinkage != nilPod::UI.puts"Configuring Pod with #{linkage}ally linked Frameworks".greenuse_frameworks!:linkage=>linkage.to_symendtarget'ios-app'doconfig=use_native_modules!use_react_native!(:path=>config[:reactNativePath],# An absolute path to your application root.:app_path=>"#{Pod::Config.instance.installation_root}/../react-native")post_installdo |installer|
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202react_native_post_install(installer,config[:reactNativePath],:mac_catalyst_enabled=>false,# :ccache_enabled => true)endend
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.
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.
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.
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
The text was updated successfully, but these errors were encountered: