I used to be attempting to make use of the @react-native-community/geolocation module, nevertheless it says the module is just not linked and asks to run “pod set up”. Working the command it throws one other error:
Invalid Podfile
file: No such file or listing – command -v node
The app works superb when operating on android, however crashes when operating checks with jest (I assume that jest makes use of ios someway to run the checks)
Full message:
[!] Invalid `Podfile` file: No such file or listing - command -v node.
# from C:/Customers/KinTsume/Paperwork/AstroCalculator/ios/Podfile:9
# -------------------------------------------
# finish
> finish # # Resolve react_native_pods.rb with node to permit for hoisting
# -------------------------------------------
Podfile:
# Resolve react_native_pods.rb with node to permit for hoisting
require Pod::Executable.execute_command('node', ['-p',
'require.resolve(
"react-native/scripts/react_native_pods.rb",
{paths: [process.argv[1]]},
)', __dir__]).strip
platform :ios, min_ios_version_supported
prepare_react_native_project!
linkage = ENV['USE_FRAMEWORKS']
if linkage != nil
Pod::UI.places "Configuring Pod with #{linkage}ally linked Frameworks".inexperienced
use_frameworks! :linkage => linkage.to_sym
finish
goal 'AstroCalculator' do
config = use_native_modules!
use_react_native!(
:path => config[:reactNativePath],
# An absolute path to your utility root.
:app_path => "#{Pod::Config.occasion.installation_root}/.."
)
goal 'AstroCalculatorTests' do
inherit! :full
# Pods for testing
pod 'react-native-geolocation-service', path: '../node_modules/react-native-geolocation-service'
finish
post_install do |installer|
# https://github.com/fb/react-native/blob/predominant/packages/react-native/scripts/react_native_pods.rb#L197-L202
react_native_post_install(
installer,
config[:reactNativePath],
:mac_catalyst_enabled => false,
# :ccache_enabled => true
)
finish
finish
I’ve searched loads and could not discover somebody with the same error