react-native-rename icon indicating copy to clipboard operation
react-native-rename copied to clipboard

iOS build command "npx react-native run-ios" fails after rename

Open dickiesanders opened this issue 9 months ago • 0 comments

Describe the bug After renaming a React Native project using react-native-rename, the npx react-native run-ios command fails with a CocoaPods installation error, even though manual pod install works successfully and the app can be built directly through Xcode.

To Reproduce Steps to reproduce the behavior:

  1. Create a React Native project
  2. Run npx react-native-rename@latest "project_name" -b "com.project_name.app" to rename the project
  3. Follow react-native-rename output instructions (delete ios files and reinstall pods)
  4. Attempt to run the iOS app with npx react-native run-ios
  5. Observe the CocoaPods installation error

Expected behavior The npx react-native run-ios command should successfully build and run the app after renaming the project.

Screenshots If applicable, add screenshots to help explain your problem. Image

Environment (please complete the following information):

  • operating system: MacOS Sequoia 15.1
  • npm version: 10.9.0
  • node version: v22.12.0
  • react-native-rename version: latest
  • react-native version: v0.78

Additional context Add any other context about the problem here.

dickiesanders avatar Mar 11 '25 13:03 dickiesanders