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

Publish to Mac OSX App Store

Scheduled Pinned Locked Moved Unsolved General and Desktop
13 Posts 3 Posters 5.1k Views
  • 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.
  • M Offline
    M Offline
    Marek
    wrote on 25 Apr 2018, 17:57 last edited by
    #1

    Hi,
    I'm publishing Qt apps to iOS App Store using Xcode.
    However, now I need to publish to Mac OSX App Store and I wonder how to do that. When I was searching the Net I'm confused, do I need Xcode in the process? (except being installed), will macdeplyqt sign my app and then I need to use Application Loader to submit App to App Store ?
    According to this post Sandbox app for the Mac App Store codesign does not work, but it was written a year ago. Some howtos are even older Getting a Qt/C++ App in the Mac App Store
    So what is current status for submitting to Mac App Store?

    Best Regards
    Marek

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 25 Apr 2018, 19:27 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 25 Apr 2018, 19:51
      0
      • S SGaist
        25 Apr 2018, 19:27

        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 25 Apr 2018, 19:51 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
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 25 Apr 2018, 19:52 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 25 Apr 2018, 20:52
          0
          • S SGaist
            25 Apr 2018, 19:52

            What modules are you using in your application ?

            M Offline
            M Offline
            Marek
            wrote on 25 Apr 2018, 20:52 last edited by
            #5

            @SGaist
            core gui xml concurrent printsupport sql widgets

            Best,
            Marek

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 25 Apr 2018, 21:04 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 25 Apr 2018, 21:20
              0
              • S SGaist
                25 Apr 2018, 21:04

                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 25 Apr 2018, 21:20 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
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 25 Apr 2018, 21:36 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 26 Apr 2018, 06:44
                  0
                  • S SGaist
                    25 Apr 2018, 21:36

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

                    M Offline
                    M Offline
                    Marek
                    wrote on 26 Apr 2018, 06:44 last edited by
                    #9

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

                    1 Reply Last reply
                    0
                    • S SGaist
                      25 Apr 2018, 21:36

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

                      M Offline
                      M Offline
                      Marek
                      wrote on 27 Apr 2018, 11:41 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 27 Apr 2018, 13:24
                      0
                      • M Marek
                        27 Apr 2018, 11:41

                        @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 27 Apr 2018, 13:24 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 31 Jan 2019, 14:47 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 31 Jan 2019, 15:44
                          0
                          • S shaan7
                            31 Jan 2019, 14:47

                            @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 31 Jan 2019, 15:44 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