title: Xcode/React-native : Undefined symbol: _swift_getFunctionReplacement
body: <p>I have a react-native project and I started getting following error in my xcode build after I installed some mapbox related pods.</p>
  <pre><code>ld: warning: building for iOS, but linking in dylib file (/Users/nitinsharma/Library/Developer/Xcode/DerivedData/app-bpqejjqomhurrldtyubqevqtdqzc/Build/Products/Debug-iphoneos/MapboxAccounts.framework/MapboxAccounts) built for Mac Catalyst
  Undefined symbols for architecture arm64:
    &quot;_swift_getFunctionReplacement&quot;, referenced from:
        _swift_getFunctionReplacement50 in libswiftCompatibilityDynamicReplacements.a(DynamicReplaceable.cpp.o)
       (maybe you meant: _swift_getFunctionReplacement50)
  ld: symbol(s) not found for architecture arm64
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  </code></pre>
  <p>Now the error goes aways if I follow these steps</p>
  <pre><code> 1. Go to project&gt;build settings&gt; library search path
   2. remove &quot;$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)&quot;
  
  </code></pre>
  <p>However after that I am not able to install the app as I get following error when xcode tries to install the app on my device. I even tried deleting <code>DerivedData</code> folder but no luck</p>
  <pre><code>Details
  
  Unable to install &quot;app&quot;
  Domain: com.apple.dt.MobileDeviceErrorDomain
  Code: -402653103
  --
  Could not inspect the application package.
  Domain: com.apple.dt.MobileDeviceErrorDomain
  Code: -402653103
  User Info: {
      DVTRadarComponentKey = 282703;
      MobileDeviceErrorCode = &quot;(0xE8000051)&quot;;
      &quot;com.apple.dtdevicekit.stacktrace&quot; = (
      0   DTDeviceKitBase                     0x0000000124ca7c8f DTDKCreateNSErrorFromAMDErrorCode + 220
      1   DTDeviceKitBase                     0x0000000124ce6241 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155
      2   DVTFoundation                       0x000000010950764b DVTInvokeWithStrongOwnership + 71
      3   DTDeviceKitBase                     0x0000000124ce5f82 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1440
      4   IDEiOSSupportCore                   0x0000000124b56a10 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.292 + 3513
      5   DVTFoundation                       0x000000010963617e __DVT_CALLING_CLIENT_BLOCK__ + 7
      6   DVTFoundation                       0x0000000109637da0 __DVTDispatchAsync_block_invoke + 1191
      7   libdispatch.dylib                   0x00007fff7182e6c4 _dispatch_call_block_and_release + 12
      8   libdispatch.dylib                   0x00007fff7182f658 _dispatch_client_callout + 8
      9   libdispatch.dylib                   0x00007fff71834c44 _dispatch_lane_serial_drain + 597
      10  libdispatch.dylib                   0x00007fff718355d6 _dispatch_lane_invoke + 363
      11  libdispatch.dylib                   0x00007fff7183ec09 _dispatch_workloop_worker_thread + 596
      12  libsystem_pthread.dylib             0x00007fff71a89a3d _pthread_wqthread + 290
      13  libsystem_pthread.dylib             0x00007fff71a88b77 start_wqthread + 15
  );
  }
  --
  
  
  System Information
  
  macOS Version 10.15.6 (Build 19G2021)
  Xcode 12.4 (17801) (Build 12D4e)
  </code></pre>
  <p>I am using <code>react native v0.63.0</code> and <code>Xcode 12.4</code> and my device is running <code>iOS 14.4</code></p>
  <pre><code>Mapbox related pods that are installed
  
  mapbox related pods from my podfile.lock
   - Mapbox-iOS-SDK (6.3.0):
      - MapboxMobileEvents (~&gt; 0.10.4)
   - MapboxAccounts (2.3.1)
   - MapboxCommon (9.2.0)
   - MapboxCoreNavigation (1.2.1):
      - MapboxAccounts (~&gt; 2.3.0)
      - MapboxDirections (~&gt; 1.2.0)
      - MapboxMobileEvents (~&gt; 0.10.2)
      - MapboxNavigationNative (~&gt; 30.0)
      - Turf (~&gt; 1.0)
   - MapboxDirections (1.2.0):
      - Polyline (~&gt; 5.0)
      - Turf (~&gt; 1.0)
   - MapboxMobileEvents (0.10.7)
   - MapboxNavigation (1.2.1):
      - Mapbox-iOS-SDK (~&gt; 6.0)
      - MapboxCoreNavigation (= 1.2.1)
      - MapboxMobileEvents (~&gt; 0.10.2)
      - MapboxSpeech (~&gt; 1.0)
      - Solar (~&gt; 2.1)
   - MapboxNavigationNative (30.0.0):
      - MapboxCommon (= 9.2.0)
   - MapboxSpeech (1.0.0)
  </code></pre>