question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS build fails for RN upgrade 0.64.2 -> 0.65.1

See original GitHub issue

Description

I went through the upgrade helper for RN version 0.64.2 -> 0.65.1. Android build successful but iOS cannot build. failed-build RCTViewRegistry

React Native version:

rn-info

Steps To Reproduce

I ran the following commands:

  1. npx react-native upgrade
  2. npx react-native start
  3. npx react-native run-ios

Expected Results

iOS should build successfully.

Snack, code example, screenshot, or link to a repository:

I ran the following commands:

  1. npx react-native upgrade
  2. npx react-native start
  3. npx react-native run-ios

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:14

github_iconTop GitHub Comments

33reactions
danielrhodescommented, Aug 31, 2021

Having a similar issues with this upgrade on iOS

ld: warning: directory not found for option '-L/Users/xxxxxxxxxxx/Library/Developer/Xcode/DerivedData/app-agsgroevmbnujndpymeffqqnblvx/Build/Intermediates.noindex/ArchiveIntermediates/app/BuildProductsPath/Release-iphoneos/React-CoreModules'`
ld: library not found for -lReact-CoreModules

But only during archiving. When I look inside the build intermediates folder, the React-CoreModules folder is not there (as the warning suggests).

I have tried doing things like a clean and removing the Pods folder and then running pod install

UPDATE

I have resolved this. In the Podfile, the minimum iOS target version in 0.65 is upped to 11.0, but my XCode project was still at 10.0. When I changed this to match what was in Cocoapods, the linking step worked and things archived successfully. Hope that helps somebody with a similar issue.

1reaction
452MJcommented, Aug 31, 2021

I upgrade successfully from 0.64.0 to 0.65.1 by using the manual😅

Read more comments on GitHub >

github_iconTop Results From Across the Web

error Unexpected token = after upgrading from RN 0.64.2 to ...
I had this issue after upgrading RN to 65.1. As per my investigation it is caused by an incorrect Node.js version used during...
Read more >
React Native Upgrade Helper
It knows which packages* versions are compatible with your specific version of RN, and it uses that knowledge to align dependencies, keeping your...
Read more >
Upgrading a React Native App - Bionic Julia
This was an upgrade from version 0.63.3 to 0.65.1. ... run the build process for iOS and Android, see it fail, google the...
Read more >
react native error build: command phasescriptexecution failed with a ...
One possible reason could be that Xcode is using an outdated version of Node (in my case, it was because I use nvm...
Read more >
Upgrading to new versions - React Native
Because typical React Native projects are essentially made up of an Android project, an iOS project, and a JavaScript project, upgrading can ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found