Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Problems signing an Mac App
Forum Updated to NodeBB v4.3 + New Features

Problems signing an Mac App

Scheduled Pinned Locked Moved Solved Installation and Deployment
18 Posts 3 Posters 3.7k 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.
  • P Offline
    P Offline
    Poll3xd
    wrote on last edited by
    #1

    Hi I'm having difficulties signing an Mac OS App, because I have some dylibs that are located in the apps plugin directory. I have had a dialog with Apple's Developer Technical Support and they are suggesting that I remove my Plugin directory and move all the dylibs from there to the Frameworks directory. The problem is that, when I do that, I can run my program, because Qt can't load the "cocoa" plugin.

    My question is: Is it possible to have a functioning application, where all the dylibs from the Plugin directory are moved to the Framework directory? Because that seems to be the only wat I can properly sign my application according to Apple's DTS.

    Thanks in advance

    1 Reply Last reply
    0
    • P Offline
      P Offline
      Poll3xd
      wrote on last edited by Poll3xd
      #18

      Edit:

      Thanks it works now.

      I installed Qt version 5.8 and used this guide to sign it: https://successfulsoftware.net/2014/10/17/signing-qt-applications-for-mac-os-x-10-9-5-and-10-10/

      I might need to purchase DropDMG in 30 days, but it'll work for now :)

      Thanks for the help

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

        Hi,

        What signing problem do you have exactly ?

        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
        • P Offline
          P Offline
          Poll3xd
          wrote on last edited by
          #3

          My problem is that my application wont sign properly, because of my nested code.

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

            What do you mean by nested code ?

            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
            • D Offline
              D Offline
              dimitar
              wrote on last edited by
              #5

              This is how I sign

              codesign --force --deep -vvvv -s "$SIGN_IDENTITY" $APP
              codesign --verify -vvvv $APP
              spctl --verbose=4 --assess --type execute $APP
              

              Maybe you can try that and see if it works.

              1 Reply Last reply
              0
              • P Offline
                P Offline
                Poll3xd
                wrote on last edited by
                #6

                Hi dimitar
                I tried doing the same as you and the output of the second line is:

                myAPP: valid on disk
                myAPP: satisfies its Designated Requirement

                But the output of the third line is:

                myApp: rejected
                source=Developer ID

                I used to be able to sign my apps, but for some reason it wont anymore and we renewed our developer license at Apple 1 months ago. Sp that shouldn't be the problem.

                @SGaist
                The reason I' bringing up nested code, is because of this conversation I had with an Apple tecnician: https://forums.developer.apple.com/thread/75149

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

                  Then you should use the -codesign option of macdeployqt

                  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
                  • P Offline
                    P Offline
                    Poll3xd
                    wrote on last edited by
                    #8

                    I can't seem to find that option

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

                      What version of Qt are you using ?

                      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
                      • P Offline
                        P Offline
                        Poll3xd
                        wrote on last edited by
                        #10

                        http://imageshack.com/a/img922/6973/y8ThDu.png

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

                          That's the Qt Creator version. What is the installed Qt version ?

                          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
                          • P Offline
                            P Offline
                            Poll3xd
                            wrote on last edited by
                            #12

                            I'm using version 5

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

                              You'd have to be more specific. Qt 5 is a series.

                              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
                              • P Offline
                                P Offline
                                Poll3xd
                                wrote on last edited by
                                #14

                                My App is running on version 5.6

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

                                  Then you might want to run a more recent version of macdeployqt.

                                  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
                                  • P Offline
                                    P Offline
                                    Poll3xd
                                    wrote on last edited by
                                    #16

                                    How do I run a more recent version of macdeployment. I can't seem to find a way to update my macdeplyqt.

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

                                      You use the macdeployqt from a more recent Qt installation.

                                      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
                                      • P Offline
                                        P Offline
                                        Poll3xd
                                        wrote on last edited by Poll3xd
                                        #18

                                        Edit:

                                        Thanks it works now.

                                        I installed Qt version 5.8 and used this guide to sign it: https://successfulsoftware.net/2014/10/17/signing-qt-applications-for-mac-os-x-10-9-5-and-10-10/

                                        I might need to purchase DropDMG in 30 days, but it'll work for now :)

                                        Thanks for the help

                                        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