0.1 C
New York
Sunday, December 1, 2024

ios – Xcode couldn’t construct modules


im veryy new to cellular improvement, and i attempted implementing firebase. nonetheless, i have been getting points when constructing my undertaking. a bunch of modules will not construct:

failing modules

and that is an instance of what the error log seems to be like:

errors

that is what my Podfile seems to be like proper now:

# 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, '13.4'
prepare_react_native_project!

# Embrace ReactCommon dependencies
pod 'ReactCommon', :path => '../node_modules/react-native/ReactCommon'
pod 'ReactCommon/turbomodule/core', :path => '../node_modules/react-native/ReactCommon'

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 'CampusWatch' 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}/.."
  )

  # Apply modular headers solely to particular Firebase-related pods
  pod 'FirebaseCore', :modular_headers => true
  pod 'Firebase', :modular_headers => true
  pod 'FirebaseCoreInternal', :modular_headers => true
  pod 'GoogleUtilities', :modular_headers => true

  goal 'CampusWatchTests' do
    inherit! :full
    # Pods for testing
  finish

  post_install do |installer|
    react_native_post_install(installer, config[:reactNativePath])

    # Optionally, deal with ReactCommon modulemap conflicts
    # system("rm -rf Pods/Goal Assist Information/ReactCommon/ReactCommon.modulemap")
  finish
finish

i attempted asking chatgpt and it was telling me to vary my header search paths and library search paths to be like this for each the undertaking and undertaking goal:

search path instance

it additionally steered that i add frameworks to the construct phases beneath “hyperlink binary with libraries” however i did not see any modifications

if anybody might help out, i would respect it!

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles