ios/App/App structure

When creating a Capacitor app, is is always created with the iOS/App/App/... filesystem structure. However, that causes problems later as I’m trying to build and deploy to the App Store (for testing at first) because you can’t have your app named App.

In Xcode, I can change the name of the App in the project structure to My App which causes Xcode to rename directories in the ios directory, and then npx cap sync fails.

I cannot seem to find anywhere in the config files someplace to define the ios/... directory structure such that I can have a proper name for my App in Xcode, and also have npx cap sync continue to function.

I am certain it’s a simple config option that I am simply unable to find in my search of the docs, or am unable to fully understand, but I really would appreciate some help!

dg

Our app is using the default file structure of App/App without issue :thinking:

We do have ios.scheme set to our app name though in our capacitor.config.ts. See Capacitor Configuration | Capacitor Documentation.

Also see Configuring iOS | Capacitor Documentation.

You can’t rename the App directory, but you can set the name of your app by renaming the App target.

1 Like