Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16552

(React Native / iOS) Suddenly Getting the Error: Undefined symbols for architecture arm64: "_RCTSharedApplication"

$
0
0

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.

Undefined symbols for architecture arm64:"_RCTSharedApplication", referenced from:      -[MyAppTests testRendersWelcomeScreen] in MyAppTests.old: symbol(s) not found for architecture arm64clang: error: linker command failed with exit code 1 (use -v to see invocation)

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.

What I tried so far:

  1. Clean and re-archive the project
  2. Delete cached data in DerivedData
  3. Update Cocopods to 1.9.0
  4. Downgrade Xcode to 11.4
  5. Change Build Active Architecture Only to YES following this answer: How solve 'Undefined symbols for architecture armv7' in React Native iOS?

My current environment is:

  • OS: macOS Catalina Version 10.15.4
  • Xcode: Version 11.4.1
  • React Native: Version 0.61.2
  • Cocopods: Version 1.9.0

I am stuck in this problem for a while now. Any help would be deeply appreciated.


Viewing all articles
Browse latest Browse all 16552

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>