title: (React Native / iOS) Suddenly Getting the Error: Undefined symbols for architecture arm64: "_RCTSharedApplication"
body: <p>I am facing an issue with archiving my React Native project for the production scheme on Xcode. The app is able to run on my real device, however, archiving the project always fails with the following error.</p>
  
  <pre><code>Undefined symbols for architecture arm64:
    "_RCTSharedApplication", referenced from:
        -[MyAppTests testRendersWelcomeScreen] in MyAppTests.o
  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>It was working just fine until a few weeks ago, and it still works just fine for the staging scheme. It just suddenly stopped working.
  Although I tried the following things so far, I got no luck.</p>
  
  <p><strong>What I tried so far:</strong></p>
  
  <ol>
  <li>Clean and re-archive the project</li>
  <li>Delete cached data in DerivedData</li>
  <li>Update Cocopods to 1.9.0</li>
  <li>Downgrade Xcode to 11.4</li>
  <li>Change <code>Build Active Architecture Only</code> to <code>YES</code> following this answer: <a href="https://stackoverflow.com/questions/59573326/how-solve-undefined-symbols-for-architecture-armv7-in-react-native-ios">How solve &#39;Undefined symbols for architecture armv7&#39; in React Native iOS?</a></li>
  </ol>
  
  <p><strong>My current environment is:</strong>  </p>
  
  <ul>
  <li>OS: macOS Catalina Version 10.15.4  </li>
  <li>Xcode: Version 11.4.1  </li>
  <li>React Native: Version 0.61.2  </li>
  <li>Cocopods: Version 1.9.0</li>
  </ul>
  
  <p>I am stuck in this problem for a while now. Any help would be deeply appreciated.</p>