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. Publish to Mac OSX App Store
Qt 6.11 is out! See what's new in the release blog

Publish to Mac OSX App Store

Scheduled Pinned Locked Moved Unsolved General and Desktop
13 Posts 3 Posters 6.0k Views 3 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi,

    macdeployqt provides two options to code sign and avoid deploying frameworks that would be rejected by the App Store.

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

    M 1 Reply Last reply
    0
    • SGaistS SGaist

      Hi,

      macdeployqt provides two options to code sign and avoid deploying frameworks that would be rejected by the App Store.

      M Offline
      M Offline
      Marek
      wrote on last edited by
      #3

      @SGaist
      -codesign=<ident> Run codesign with the given identity on all executables
      -appstore-compliant Skip deployment of components that use private API

      So regarding the last option if I see messages like this in Qt Creator does it smell like problems?
      "Project MESSAGE: This project is using private headers and will therefore be tied to this specific Qt module build version.
      Project MESSAGE: Running this project against other versions of the Qt modules may crash at any arbitrary point."

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

        What modules are you using in your application ?

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

        M 1 Reply Last reply
        0
        • SGaistS SGaist

          What modules are you using in your application ?

          M Offline
          M Offline
          Marek
          wrote on last edited by
          #5

          @SGaist
          core gui xml concurrent printsupport sql widgets

          Best,
          Marek

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

            Haaa sorry, I misread the message.

            Are you using any of Qt's private headers ?

            The message just explains that if you switch Qt version without recompiling your application you are going to enter uncharted territory.

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

            M 1 Reply Last reply
            0
            • SGaistS SGaist

              Haaa sorry, I misread the message.

              Are you using any of Qt's private headers ?

              The message just explains that if you switch Qt version without recompiling your application you are going to enter uncharted territory.

              M Offline
              M Offline
              Marek
              wrote on last edited by
              #7

              @SGaist
              OK but this is no problem for Mac App Store, I assume.
              How about -codesign=<ident>
              What is the value of <ident> ? provisionin profile? apple id?

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

                IIRC, the name of the certificate to use for signing. Usually something like "XXX Distribution".

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

                M 2 Replies Last reply
                0
                • SGaistS SGaist

                  IIRC, the name of the certificate to use for signing. Usually something like "XXX Distribution".

                  M Offline
                  M Offline
                  Marek
                  wrote on last edited by
                  #9

                  @SGaist Thanks, I will try this soon and report back

                  1 Reply Last reply
                  0
                  • SGaistS SGaist

                    IIRC, the name of the certificate to use for signing. Usually something like "XXX Distribution".

                    M Offline
                    M Offline
                    Marek
                    wrote on last edited by
                    #10

                    @SGaist
                    Hi I just need some hint, I'm new to macOS.
                    I have run qmake -spec macx-xcode on my project which generated project.xcodeproj then it compiles fine and runs under XCode.
                    Can't validate it because of lack of sandbox entitlements.
                    So I added entitlements then archived product, validated and uploaded to AppStore.
                    However, if I run this project with entitlements in XCode it does not start saying:

                    warning: 'QtCore' contains a debug script. To run this script in this debug session:
                    
                        command script import "/Users/myuser/Qt/5.10.1/clang_64/lib/QtCore.framework.dSYM/Contents/Resources/DWARF/../Python/QtCore.py"
                    
                    To run all discovered debug scripts in this session:
                    
                        settings set target.load-script-from-symbol-file true
                    
                    This application failed to start because it could not find or load the Qt platform plugin "cocoa"
                    in "".
                    
                    Reinstalling the application may fix this problem.
                    

                    So, I assume it will not work, even though it went through validation and upload to App Store :)

                    Right approach would be to build in Xcode without entitlements and run macdeployqt on Myapp.app or just codesign with entitlements ?

                    Best Regards
                    Marek

                    M 1 Reply Last reply
                    0
                    • M Marek

                      @SGaist
                      Hi I just need some hint, I'm new to macOS.
                      I have run qmake -spec macx-xcode on my project which generated project.xcodeproj then it compiles fine and runs under XCode.
                      Can't validate it because of lack of sandbox entitlements.
                      So I added entitlements then archived product, validated and uploaded to AppStore.
                      However, if I run this project with entitlements in XCode it does not start saying:

                      warning: 'QtCore' contains a debug script. To run this script in this debug session:
                      
                          command script import "/Users/myuser/Qt/5.10.1/clang_64/lib/QtCore.framework.dSYM/Contents/Resources/DWARF/../Python/QtCore.py"
                      
                      To run all discovered debug scripts in this session:
                      
                          settings set target.load-script-from-symbol-file true
                      
                      This application failed to start because it could not find or load the Qt platform plugin "cocoa"
                      in "".
                      
                      Reinstalling the application may fix this problem.
                      

                      So, I assume it will not work, even though it went through validation and upload to App Store :)

                      Right approach would be to build in Xcode without entitlements and run macdeployqt on Myapp.app or just codesign with entitlements ?

                      Best Regards
                      Marek

                      M Offline
                      M Offline
                      Marek
                      wrote on last edited by
                      #11

                      Strange, I have played with entitlements in XCode Build Settings. I have deleted path to entilements file for Debug and for Release, I have left entitlements for Release -> Any SDK.
                      Now it runs fine in XCode and it was also validated and uploaded to App Store.
                      I hope it will work ;)

                      Best,
                      Marek

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        shaan7
                        wrote on last edited by
                        #12

                        @Marek so were you successful in publishing your app? I could get my app running fine with XCode (even with App Sandbox enabled) but when I install and run the .pkg that XCode gives me after publishing for the store, I get this error-

                        LSOpenURLsWithRole() failed with error -10810 for the file

                        Any tips or things to keep in mind when publishing to Mac store are welcome as well.

                        M 1 Reply Last reply
                        0
                        • S shaan7

                          @Marek so were you successful in publishing your app? I could get my app running fine with XCode (even with App Sandbox enabled) but when I install and run the .pkg that XCode gives me after publishing for the store, I get this error-

                          LSOpenURLsWithRole() failed with error -10810 for the file

                          Any tips or things to keep in mind when publishing to Mac store are welcome as well.

                          M Offline
                          M Offline
                          Marek
                          wrote on last edited by
                          #13

                          @shaan7
                          Hi
                          I have published. This is old post.
                          See this one: https://forum.qt.io/topic/94844/deploy-to-osx-appstore

                          Best,
                          Marek

                          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