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
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
14 Posts 2 Posters 1.2k 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
    #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