You can't rename the App directory, but you can set the name of your app by renaming the App target. To rename the App target, open your project in Xcode, select the App project, and double-click the App target. Finally, add the scheme attribute inside the ios object in the Capacitor configuration file.