<!--
{
  "availability" : [
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WatchKit",
  "identifier" : "/documentation/WatchKit/WKApplicationDelegate/main()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "WatchKit"
    ],
    "preciseIdentifier" : "s:So21WKApplicationDelegateP8WatchKitE4mainyyFZ"
  },
  "title" : "main()"
}
-->

# main()

Provides the top-level entry point for an app.

```
@MainActor @preconcurrency static func main()
```

## Discussion

[`WKApplicationDelegate`](/documentation/WatchKit/WKApplicationDelegate) provides an implementation of the [`main()`](/documentation/WatchKit/WKApplicationDelegate/main()) method that serves as the main entry point for your watchOS app. The system calls the [`main()`](/documentation/WatchKit/WKApplicationDelegate/main()) method to launch your app; you never call it yourself. Your app can have exactly one entry point, which you mark with the `@main` attribute.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)