Skip to content

[Windows] The application starts together with the console if the release build is used #1

@klaseca

Description

@klaseca

As a quick fix, I use several linker flags:

  linkerSettings: [
      .unsafeFlags([
          "-Xlinker", "/SUBSYSTEM:WINDOWS",
          "-Xlinker", "/ENTRY:mainCRTStartup"
          ],
          .when(platforms: [.windows])
      ),
  ]

It seems to work, but maybe something else is needed or a different solution. I'm no expert

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions