Rename Project in Xcode Error
If you just rename the project in Xcode, you will get build error.
You need to switch to new scheme in order to build it since the Xcode still use the old scheme file.
E.g. If you original project file is myproject and you want to rename to newproject
then you need to switch the scheme file from myproject.xcscheme to newproject.xcscheme

See the following screenshot how to switch different scheme file when you rename the project

1. Delete the old test file
2. Add new new test file to new name project