Fix 'React/RCTDefines.h' file not found into React Native with fix of Multiple commands produce

November 30, 2023

Fix ‘React/RCTDefines.h’ file not found into React Native

Fix 'React/RCTDefines.h' file not found

  1. Go to Project navigator > Libraries > RNWifi
    where I am using a example of
  2. Click on Build Settings and then the first item under “Targets”
  3. Scroll down to ‘Search Paths’
  4. Double click to edit the ‘Header Search Paths’
  5. Add the following entry (click ’+’): ${SRCROOT}/../../../ios/Pods/Headers. Make sure to set it to recursive.
  6. Clean (cmd + shift + K) and re-build (cmd + B)\


    Fix Multiple commands produce

     use_flipper!()
     post_install do |installer|
       react_native_post_install(installer)
       __apply_Xcode_12_5_M1_post_install_workaround(installer)
       installer.pods_project.targets.each do |target|
       
      // start
      // RNWifi is trageet name
    
         targets_to_ignore = %w(React RNWifi)
         if targets_to_ignore.include? target.name
           target.remove_from_project
         end
     // finish
    
         target.build_configurations.each do |config|
           config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
         end
       end
     end
    end

Written by Manoj Bhardwaj who lives and works in Dharamshala Himachal Pradesh (India). My stackoverflow