0

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. Xcode error when clicking on resume

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

1 Answers1

0

I had a hyphen in my product name. Removed it and it is fine.

Stephen501
  • 153
  • 8