Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Program won't start on macOS when using the .app
Forum Updated to NodeBB v4.3 + New Features

Program won't start on macOS when using the .app

Scheduled Pinned Locked Moved Unsolved General and Desktop
26 Posts 6 Posters 3.6k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SimonSchroeder
    wrote on 29 Sept 2021, 06:40 last edited by
    #21

    How do you run the program from the terminal? Do run the executable inside Contents/MacOS? Or do you type open MyApp.app?

    If it is about not signing your app like @artwaw suggested, there is a difference to opening the app by just clicking on it (which will then not work) and doing a right click and selecting Open from the context menu.

    P 1 Reply Last reply 29 Sept 2021, 13:55
    0
    • S SimonSchroeder
      29 Sept 2021, 06:40

      How do you run the program from the terminal? Do run the executable inside Contents/MacOS? Or do you type open MyApp.app?

      If it is about not signing your app like @artwaw suggested, there is a difference to opening the app by just clicking on it (which will then not work) and doing a right click and selecting Open from the context menu.

      P Offline
      P Offline
      PatrickKox
      wrote on 29 Sept 2021, 13:55 last edited by
      #22

      @SimonSchroeder
      I run the executable in Contents/MacOS, when I use open MyApp.app it just ends without any message.

      I've also tried to sign the app but that doesn't help.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        artwaw
        wrote on 29 Sept 2021, 14:02 last edited by
        #23

        Out of curiosity, are you able to create fresh, new, simple program (can be just main window, empty), compile it, macdeployqt-it and run without any issues? Just to check if it is something particular to your main project that fails or the problem is in the environment itself?

        For more information please re-read.

        Kind Regards,
        Artur

        1 Reply Last reply
        0
        • J Offline
          J Offline
          JoeCFD
          wrote on 29 Sept 2021, 15:47 last edited by JoeCFD
          #24

          use dtruss to run your app to see what is missing. QtCreator has its own env settings. If your app can not be started, that means some env settings are missing. dtruss may be able to tell what.

          1 Reply Last reply
          0
          • P Offline
            P Offline
            PatrickKox
            wrote on 29 Sept 2021, 16:02 last edited by
            #25

            @artwaw
            The blank project works fine, I don't even need to execute macdeployqt on it for it to work. So it's not my build environment.

            @JoeCFD
            dtruss returns a massive list of information, is there something I can grep at? Most information looks like memory addresses?

            J 1 Reply Last reply 29 Sept 2021, 16:39
            0
            • P PatrickKox
              29 Sept 2021, 16:02

              @artwaw
              The blank project works fine, I don't even need to execute macdeployqt on it for it to work. So it's not my build environment.

              @JoeCFD
              dtruss returns a massive list of information, is there something I can grep at? Most information looks like memory addresses?

              J Offline
              J Offline
              JoeCFD
              wrote on 29 Sept 2021, 16:39 last edited by
              #26

              @PatrickKox if a lib or plugin is missing, you may be able to see it. Pipe the output into a file.
              and you can do the same thing by running the build with qtcreator which runs well. Then you can compare both output and may be able to find some hints.

              1 Reply Last reply
              0

              21/26

              29 Sept 2021, 06:40

              • Login

              • Login or register to search.
              21 out of 26
              • First post
                21/26
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved