8.3 C
New York
Thursday, October 17, 2024

Error producing construct on ios in my react native app


I’ve a react native + expo app which works completely on Android and Expo go, however once I need to compile in Xcode it offers me this error

/Customers/edwin/Desktop/App/app-riqueza/ios/Pods/Goal Help Information/gRPC-C++/gRPC-C++-dummy.m module map file '/Customers/edwin/Desktop/App/app-riqueza/ios/Pods/Headers/Personal/grpc/gRPC-Core.modulemap' not discovered

By way of the IOS surroundings, they’re fairly incompetent and I’ve solved errors within the Podfile and that is how my file is presently

require File.be a part of(File.dirname(`node --print "require.resolve('expo/bundle.json')"`), "scripts/autolinking")
require File.be a part of(File.dirname(`node --print "require.resolve('react-native/bundle.json')"`), "scripts/react_native_pods")

require 'json'
podfile_properties = JSON.parse(File.learn(File.be a part of(__dir__, 'Podfile.properties.json'))) rescue {}

ENV['RCT_NEW_ARCH_ENABLED'] = podfile_properties['newArchEnabled'] == 'true' ? '1' : '0'
ENV['EX_DEV_CLIENT_NETWORK_INSPECTOR'] = podfile_properties['EX_DEV_CLIENT_NETWORK_INSPECTOR']

use_autolinking_method_symbol = ('use' + '_native' + '_modules!').to_sym
origin_autolinking_method = self.technique(use_autolinking_method_symbol)
self.define_singleton_method(use_autolinking_method_symbol) do |*args|
  if ENV['EXPO_UNSTABLE_CORE_AUTOLINKING'] == '1'
    Pod::UI.places('Utilizing expo-modules-autolinking as core autolinking supply'.inexperienced)
    config_command = [
      'node',
      '--no-warnings',
      '--eval',
      'require(require.resolve('expo-modules-autolinking', { paths: [require.resolve('expo/package.json')] }))(course of.argv.slice(1))',
      'react-native-config',
      '--json',
      '--platform',
      'ios'
    ]
    origin_autolinking_method.name(config_command)
  else
    origin_autolinking_method.name()
  finish
finish

platform :ios, podfile_properties['ios.deploymentTarget'] || '13.4'
use_modular_headers!
pod 'gRPC-Core', :modular_headers => true
pod 'gRPC-C++', :modular_headers => true
pod 'BoringSSL-GRPC', :modular_headers => true
set up! 'cocoapods',
  :deterministic_uuids => false

prepare_react_native_project!

goal 'Seminario' do
  use_expo_modules!
  config = use_native_modules!

  use_frameworks! :linkage => podfile_properties['ios.useFrameworks'].to_sym if podfile_properties['ios.useFrameworks']
  use_frameworks! :linkage => ENV['USE_FRAMEWORKS'].to_sym if ENV['USE_FRAMEWORKS']

  use_react_native!(
    :path => config[:reactNativePath],
    :hermes_enabled => podfile_properties['expo.jsEngine'] == nil || podfile_properties['expo.jsEngine'] == 'hermes',
    # An absolute path to your software root.
    :app_path => "#{Pod::Config.occasion.installation_root}/..",
    :privacy_file_aggregation_enabled => podfile_properties['apple.privacyManifestAggregationEnabled'] != 'false',
  )

  post_install do |installer|
    react_native_post_install(
      installer,
      config[:reactNativePath],
      :mac_catalyst_enabled => false,
      :ccache_enabled => podfile_properties['apple.ccacheEnabled'] == 'true',
    )

    # That is needed for Xcode 14, as a result of it indicators useful resource bundles by default
    # when constructing for units.
    installer.target_installation_results.pod_target_installation_results
      .every do |pod_name, target_installation_result|
      target_installation_result.resource_bundle_targets.every do |resource_bundle_target|
        resource_bundle_target.build_configurations.every do |config|
          config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
        finish
      finish
    finish

    installer.pods_project.targets.every do |goal|
      if goal.title == 'BoringSSL-GRPC'
        goal.source_build_phase.recordsdata.every do |file|
          if file.settings && file.settings['COMPILER_FLAGS']
            flags = file.settings['COMPILER_FLAGS'].break up
            flags.reject! flag
            file.settings['COMPILER_FLAGS'] = flags.be a part of(' ')
          finish
        finish
      finish
    finish

  finish

  post_integrate do |installer|
    start
      expo_patch_react_imports!(installer)
    rescue => e
      Pod::UI.warn e
    finish
  finish
finish

I had so as to add the strains

use_modular_headers!
pod 'gRPC-Core', :modular_headers => true
pod 'gRPC-C++', :modular_headers => true
pod 'BoringSSL-GRPC', :modular_headers => true

To unravel earlier errors, however now there’s this one which I’ve not been capable of remedy, does anybody understand how I can repair it?

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles