HomeiOS Developmentios - 'RCTAppDelegate.h' file not present in react-native 0.72.3

ios – ‘RCTAppDelegate.h’ file not present in react-native 0.72.3


I’m a novice in react-native.I run a current undertaking and i discovered this downside.All of the options i discovered in google not labored, by the best way, my xcode model is 14.3.1, react-native is 0.72.3 , Can somebody assist me resolve it? i’ll very admire is. right here is my Pod file

# 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, '14.0'
supply 'https://github.com/CocoaPods/Specs.git'
prepare_react_native_project!

# In case you are utilizing a `react-native-flipper` your iOS construct will fail when `NO_FLIPPER=1` is ready.
# as a result of `react-native-flipper` depends upon (FlipperKit,...) that might be excluded
#
# To repair this it's also possible to exclude `react-native-flipper` utilizing a `react-native.config.js`
# ```js
# module.exports = {
#   dependencies: {
#     ...(course of.env.NO_FLIPPER ? { 'react-native-flipper': { platforms: { ios: null } } } : {}),
# ```
flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled

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 'AuthCoreWalletDemo' do
  config = use_native_modules!
  use_frameworks! :linkage => :static
  # Flags change relying on the env values.
  flags = get_default_flags()

  use_react_native!(
    :path => config[:reactNativePath],
    # Hermes is now enabled by default. Disable by setting this flag to false.
    :hermes_enabled => false,#flags[:hermes_enabled],
    :fabric_enabled => flags[:fabric_enabled],
    # Permits Flipper.
    #
    # Observe that in case you have use_frameworks! enabled, Flipper is not going to work and
    # you must disable the subsequent line.
    # :flipper_configuration => flipper_config,
    # An absolute path to your utility root.
    :app_path => "#{Pod::Config.occasion.installation_root}/.."
  )
  
      pod 'AuthCoreAdapter', '0.1.9'
      pod 'ParticleAuthCore', '0.1.9'
      pod 'ParticleMPCCore', '0.1.9'
      pod 'Thresh', '0.1.9'
      
      pod 'ParticleWalletGUI', '1.0.2'
      pod 'ParticleWalletAPI', '1.0.2'
      pod 'ParticleNetworkBase', '1.0.2'
      pod 'ParticleAuthService', '1.0.2'
      pod 'ParticleWalletConnect', '1.0.2'
      pod 'ParticleBiconomy', '1.0.2'
      
      pod 'ParticleConnect',  '0.2.8'
      pod 'ConnectWalletConnectAdapter',  '0.2.8'
      pod 'ConnectEVMAdapter',  '0.2.8'
      pod 'ConnectSolanaAdapter',  '0.2.8'
      pod 'ConnectPhantomAdapter',  '0.2.8'
      pod 'ConnectCommon',  '0.2.8'
      pod 'ParticleAuthAdapter',  '0.2.8'
      
      pod 'SkeletonView', :git => 'https://github.com/SunZhiC/SkeletonView.git', :department => 'primary'
      pod 'SwiftMessages', :git => 'https://github.com/SunZhiC/SwiftMessages', :department => 'grasp'

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

  post_install do |installer|
    # https://github.com/fb/react-native/blob/primary/packages/react-native/scripts/react_native_pods.rb#L197-L202
    react_native_post_install(
      installer,
      config[:reactNativePath],
      :mac_catalyst_enabled => false
    )
    __apply_Xcode_12_5_M1_post_install_workaround(installer)


    installer.pods_project.targets.every do |goal|
      goal.build_configurations.every do |config|
      config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
        finish
      finish
    
    # That is vital for Xcode 14, as a result of it indicators useful resource bundles by default
    # when constructing for gadgets.
    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.generated_projects.every do |undertaking|
        undertaking.targets.every do |goal|
            goal.build_configurations.every do |config|
                config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'
             finish
        finish
      finish

        installer.pods_project.build_configurations.every do |config|
          config.build_settings['VALID_ARCHS'] = 'arm64, arm64e, x86_64'
        finish
    finish
finish

need xcode discover RCTAppDelegate.h

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments