title: React Native on M1 Air fails to build for iOS
body: <p>I'm coming back to a project after a bit of a hiatus (like 2 months or so) and trying to run my app on my M1 Air fails to build. I've used <code>react-native-clean-project</code> to clean the project between changes I've tried to fix this.</p>
  <p>I do get this when run <code>react-native clean-project-auto</code></p>
  <pre><code>Error running 'wipe iOS build artifacts': objc[39430]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1f1926c10) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x11bab82b8). One of the two will be used. Which one is undefined.
  objc[39430]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x1f1926c60) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x11bab8308). One of the two will be used. Which one is undefined.
  
  Error running 'wipe iOS build artifacts': objc[39432]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1f1926c10) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1136902b8). One of the two will be used. Which one is undefined.
  
  Error running 'wipe iOS build artifacts': objc[39432]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x1f1926c60) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x113690308). One of the two will be used. Which one is undefined.
  </code></pre>
  <p>XCode version: 12.5
  React native version: 0.64.0</p>
  <p>The error I'm getting:</p>
  <pre><code>objc[37733]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1f1926c10) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1166cc2b8). One of the two will be used. Which one is undefined.
  objc[37733]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x1f1926c60) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1166cc308). One of the two will be used. Which one is undefined.
  ** BUILD FAILED **
  
  The following build commands failed:
      CompileC /Users/kollinfrancis/Library/Developer/Xcode/DerivedData/KanjiDraw-ggmdygefcdmywmhkmjeavmfhuhel/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactCommon.build/Objects-normal/x86_64/RCTTurboModuleManager.o /Users/kollinfrancis/Documents/Projects/KanjiDraw/node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios/RCTTurboModuleManager.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler
  (1 failure)
  </code></pre>
  <p>The command I'm running:
  <code>npm run ios</code></p>
  <p>My podfile:</p>
  <pre><code>require_relative '../node_modules/react-native/scripts/react_native_pods'
  require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
  require_relative '../node_modules/react-native-unimodules/cocoapods.rb'
  
  platform :ios, '13.0'
  
  target 'X' do
    use_unimodules!
    config = use_native_modules!
  
    use_react_native!(
      :path =&gt; config[:reactNativePath],
      # to enable hermes on iOS, change `false` to `true` and then install pods
      :hermes_enabled =&gt; false
    )
  
    target 'XTests' do
      inherit! :complete
      # Pods for testing
    end
  
    # Enables Flipper.
    #
    # Note that if you have use_frameworks! enabled, Flipper will not work and
    # you should disable the next line.
    use_flipper!({ 'Flipper' =&gt; '0.90.0', 'Flipper-Folly' =&gt; '2.6.7', 'Flipper-RSocket' =&gt; '1.4.3' })
  
    post_install do |installer|
      react_native_post_install(installer)
      installer.pods_project.build_configurations.each do |config|
        config.build_settings[&quot;EXCLUDED_ARCHS[sdk=iphonesimulator*]&quot;] = &quot;arm64&quot;
      end
      installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
          config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
        end
      end 
    end
  end
  </code></pre>