react-native: iOS build fails for RN upgrade 0.64.2 -> 0.65.1

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

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16

Most upvoted comments

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.

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