Skip to content

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

@dickiesanders

Description

@dickiesanders

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions