I have just created a new SwiftUI project in Xcode 13.0, macOS Big Sur 11.6 and I getting many error messages which I don't understand.
Asked
Active
Viewed 44 times
0

Stephen501
- 153
- 8
-
The name of the struct annotated with `@Main` must be the name of the App, in your case the name with the intermediate underscore characters. – vadian Sep 30 '21 at 16:38
-
I think it's something to do with my Product Name being "I Am Rich - SwiftUI". Xcode 13.0 doesn't seem to like hyphens in their product names when the project is created. – Stephen501 Sep 30 '21 at 16:39
-
Yes, you should avoid special characters. – vadian Sep 30 '21 at 16:42
-
@Stephen501 You should try name your project with [PascalCase](https://techterms.com/definition/pascalcase) - the display name can always be different. – George Sep 30 '21 at 16:46