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.

Doesn't change ios/* names

See original GitHub issue

Hello, react-native-rename dosn’t change name of files in ‘ios’ dir, This is a sample:

D:\Project\MyProject>react-native-rename "TheName"
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
\android\app\src\main\res\values\strings.xml MODIFIED
\index.js MODIFIED
\package.json MODIFIED
\app.json MODIFIED
\android\settings.gradle MODIFIED
\app.json MODIFIED
The system cannot find the path specified.
The system cannot find the path specified.
\android\app\BUCK MODIFIED
\android\app\build.gradle MODIFIED
\android\app\src\main\AndroidManifest.xml MODIFIED
Done removing previous bundle directory.
Done removing builds.
APP SUCCESSFULLY RENAMED TO "TheName"! 🎉 🎉 🎉
Please make sure to run "watchman watch-del-all" and "npm start --reset-cache" before running the app.

System Info: — Windows 10 Enterprise — React Version : 16.2.0 — React Native Version : 0.52.2

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:13

github_iconTop GitHub Comments

13reactions
flaviocolonnacommented, Mar 27, 2019

Hi guys! The problem seems to be related with the name contained in the android/app/src/main/res/values/strings.xml file. The developer is using that app_name value to iterate over the files under the ios folder. I suggest to use the one in the app.json defined as name. So, if you want a quick fix, change the app_name with the one used by ios.

1reaction
emreakbabacommented, Oct 9, 2020

This problem seem caused by the Bundle Name and the Project Folder Name mismatch. A quick solution which i used is:

react-native-rename "DesiredName" this will output invalid path error. then: react-native-rename "CurrentName" this will solve the issue about the path to check for. then finally: react-native-rename "DesiredName"

Read more comments on GitHub >

github_iconTop Results From Across the Web

Edited Device Name Not Updating - Apple Support Communities
I changed name of my iphone x in Settings and while it shows new name there, the old name still shows under my...
Read more >
How to Change Your iPhone's Name - Lifewire
On the iPhone Home screen, tap Settings. · Select General. · Tap About. · Tap Name. iPhone settings · Tap the x next...
Read more >
How to Change iPhone Name (2022) - Beebom
1. To get started, launch the Settings app on your iPhone or iPad. Then, scroll down and tap General. · 2. Now, select...
Read more >
How to Change Your iPhone's Name (And Why You Should)
Now that you know why you should change your iPhone's name let's get it done. The fastest way to do so is from...
Read more >
How to Change the Device Name of your iPhone - YouTube
In this video I am going to show How to Change Your iPhone's Name | iPhone or iOS app or Here's How to...
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