After a long research i fixed it on IOS: My project name was called restoReel but wanted to rename it to RestoReel
Steps you need to take:
1: change name in app.json
// old { "name": "restoReel", "displayName": "restoReel" } // new "name": "RestoReel", "displayName": "RestoReel" }
2: inside ios folder PodFile => ios/Podfile // old code target 'restoReel' do // new code target 'RestoReel' do
3: inside package.json //old code "name": "restoReel", "version": "0.0.1", "private": true, "scripts": { "android": "react-native run-android", "ios": "react-native run-ios", "lint": "eslint .", "start": "react-native start", "test": "jest" }, // new code "name": "RestoReel", "version": "0.0.1", "private": true, "scripts": { "android": "react-native run-android", "ios": "react-native run-ios", "lint": "eslint .", "start": "react-native start", "test": "jest" },
4: inside info.plist // old code <key>CFBundleDisplayName</key> <string>restoReel</string> // new code <key>CFBundleDisplayName</key> <string>RestoReel</string>
5: inside AppDelegate.swift //old code factory.startReactNative( withModuleName: "restoReel", // r small letter in: window, launchOptions: launchOptions ) // new code factory.startReactNative( withModuleName: "RestoReel", // now R capital letter in: window, launchOptions: launchOptions )
6: Change folders name with your new name, e.g. screenshots.
6.1: Inside xcode go to top product -> schema -> manage schema and change the value that is selected in below screen shot

6.2: Change folders name in xcode highlighted with the red color
enter image description here
*Final and main Note
change every folder name that is old in your project inside IOS folder then uninstall node modules and then cd ios inside ios directory run below
pod deintegrate pod install
delete drived data and clean build