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

IOS ONlLY: Invariant Violation: "AppName" has not been registered. This can happen if

Open vikas-chhabra opened this issue 3 years ago • 4 comments

In ios>appName>AppDelegate.mm

In RCTAppSetupDefaultRootView change old_app_name to new_app_name

npx react-native-rename "new_app_name" updated new_app_name everywhere except this one instance.

image

vikas-chhabra avatar May 29 '22 21:05 vikas-chhabra

FYI, this is only an issue RN > 0.67. In RN 0.68, AppDelegate.m was moved to AppDelegate.mm.

jspizziri avatar Jun 20 '22 16:06 jspizziri

Looks like there's a PR out to address this already https://github.com/junedomingo/react-native-rename/pull/157

jspizziri avatar Jun 20 '22 16:06 jspizziri

In ios>appName>AppDelegate.mm

In RCTAppSetupDefaultRootView change old_app_name to new_app_name

npx react-native-rename "new_app_name" updated new_app_name everywhere except this one instance.

image

You saved my day:)

shyamalVixplor avatar Jul 19 '22 11:07 shyamalVixplor

https://github.com/junedomingo/react-native-rename/issues/159#issue-1251990267

thanks bro, works in 0.68.2 version

baha-udin avatar Oct 04 '22 01:10 baha-udin

you saved my day. Thank you sir!

wanderlust252 avatar Oct 11 '22 08:10 wanderlust252

Closing, please check v3

junedomingo avatar Dec 26 '22 09:12 junedomingo

Just to add, if you have changed the name of the application but it still displays an error, my suggestion is also to change the name of the application in the app.json file Screen Shot 2023-10-25 at 10 04 58