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. Where's the frameworks on a app for mac i built
Qt 6.11 is out! See what's new in the release blog

Where's the frameworks on a app for mac i built

Scheduled Pinned Locked Moved Unsolved General and Desktop
14 Posts 2 Posters 3.1k Views 1 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.
  • Mahdir2111M Offline
    Mahdir2111M Offline
    Mahdir2111
    wrote on last edited by Mahdir2111
    #1

    There is no frameworks on a app for mac i built, i only see Info.plist, PkgInfo and a macos folder with a unix executable file in it, will it work on other computers with qt not installed, There is usually qt frameworks for the app to work.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Which version of Qt are you using ?
      Which version of macOS ?
      Are you using qmake or cmake ?
      Can you share the project file ?

      By default, the settings should result in an app bundle being created.
      When you are ready to distribute, you should follow the deployment guide to generate the complete bundle and dmg file to distribute it.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      Mahdir2111M 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        Which version of Qt are you using ?
        Which version of macOS ?
        Are you using qmake or cmake ?
        Can you share the project file ?

        By default, the settings should result in an app bundle being created.
        When you are ready to distribute, you should follow the deployment guide to generate the complete bundle and dmg file to distribute it.

        Mahdir2111M Offline
        Mahdir2111M Offline
        Mahdir2111
        wrote on last edited by Mahdir2111
        #3

        @SGaist I'm using Qt creator to make my app and I'm using qmake, My macOS version is Sequoia 15.3, and the Qt version I'm using is 6.9.0-beta2

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Can you share your .pro file ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • Mahdir2111M Offline
            Mahdir2111M Offline
            Mahdir2111
            wrote on last edited by
            #5
            QT += quick
            
            SOURCES += \
                    main.cpp
            
            resources.files = main.qml 
            resources.prefix = /$${TARGET}
            RESOURCES += resources
            
            # Additional import path used to resolve QML modules in Qt Creator's code model
            QML_IMPORT_PATH =
            
            # Additional import path used to resolve QML modules just for Qt Quick Designer
            QML_DESIGNER_IMPORT_PATH =
            
            # Default rules for deployment.
            qnx: target.path = /tmp/$${TARGET}/bin
            else: unix:!android: target.path = /opt/$${TARGET}/bin
            !isEmpty(target.path): INSTALLS += target
            
            
            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Did you run macdeployqt on your app bundle after compilation ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              Mahdir2111M 1 Reply Last reply
              0
              • SGaistS SGaist

                Did you run macdeployqt on your app bundle after compilation ?

                Mahdir2111M Offline
                Mahdir2111M Offline
                Mahdir2111
                wrote on last edited by
                #7

                @SGaist I run it, but every time i open the app, it crashes, i also get these errors:

                RROR: Could not parse otool output line: "/Users/user/Qt/6.9.0/macos/lib/QtCore.framework/Versions/A/QtCore (architecture arm64):"
                ERROR: Could not parse otool output line: "/Users/user/untitled/build/Qt_6_9_0_for_macOS-Debug/untitled.app/Contents/Frameworks/QtNetwork.framework/Versions/A/QtNetwork (architecture arm64):"
                ERROR: Could not parse otool output line: "/Users/user/Qt/6.9.0/macos/lib/QtCore.framework/Versions/A/QtCore (architecture arm64):"
                ERROR: Could not parse otool output line: "/Users/user/Qt/6.9.0/macos/lib/QtNetwork.framework/Versions/A/QtNetwork (architecture arm64):"
                ERROR: Could not parse otool output line: "/Users/user/Qt/6.9.0/macos/lib/QtCore.framework/Versions/A/QtCore (architecture arm64):"
                
                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by SGaist
                  #8

                  Can you try again but with the official 6.8.2 ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • Mahdir2111M Offline
                    Mahdir2111M Offline
                    Mahdir2111
                    wrote on last edited by
                    #9

                    It's still not working

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      Can you share a minimal compilable project that triggers this issue ?

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0
                      • Mahdir2111M Offline
                        Mahdir2111M Offline
                        Mahdir2111
                        wrote on last edited by
                        #11

                        I think i found why: qt.qpa.plugin: Could not find the Qt platform plugin "cocoa" in ""
                        This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

                        1 Reply Last reply
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          How did you run macdeployqt ?

                          Interested in AI ? www.idiap.ch
                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                          Mahdir2111M 1 Reply Last reply
                          0
                          • SGaistS SGaist

                            How did you run macdeployqt ?

                            Mahdir2111M Offline
                            Mahdir2111M Offline
                            Mahdir2111
                            wrote on last edited by
                            #13

                            @SGaist Here's the command i used: macdeployqt appname.app

                            1 Reply Last reply
                            0
                            • SGaistS Offline
                              SGaistS Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on last edited by
                              #14

                              You should crank up the verbosity to see exactly what is happening. Also, do you have multiple versions of macdeployqt on your system ?

                              Interested in AI ? www.idiap.ch
                              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                              1 Reply Last reply
                              0

                              • Login

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