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. Codesign and deploy on osx
Forum Updated to NodeBB v4.3 + New Features

Codesign and deploy on osx

Scheduled Pinned Locked Moved Solved General and Desktop
12 Posts 2 Posters 823 Views 2 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.
  • O Offline
    O Offline
    OtisLin
    wrote on last edited by OtisLin
    #1

    I use
    macdeployqt my.app
    and my app is work.
    but now I need codesign my app,
    so I use
    macdeployqt my.app -codesign=developerID
    after codesign, use
    codesign --display --verbose=4
    to check, it's right.
    but my app can not open.

    Qt version 5.5.1
    MacOS 10.12.6
    XCode version 9.2

    please help me fix it.

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

      Hi and welcome to devnet,

      The first thing you should do is to update Qt to a recent version. The current LTS is Qt 5.12.5 and the release is 5.13.1.

      Also, what exact error do you get ?
      What version of macOS are you targeting ?

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

        Thank you for your reply.

        Actually I did not get any error by using macdeployqt my.app -codesign=developerID, this is my command line screenshot.
        Screen Shot 2019-10-28 at 9.29.19 AM.png

        and i try to open the app, I will got this
        Screen Shot 2019-10-28 at 9.27.34 AM.png

        These files are in the app.
        Screen Shot 2019-10-28 at 9.47.57 AM.png Screen Shot 2019-10-28 at 9.47.54 AM.png Screen Shot 2019-10-28 at 9.47.50 AM.png Screen Shot 2019-10-28 at 9.47.44 AM.png Screen Shot 2019-10-28 at 9.46.46 AM.png Screen Shot 2019-10-28 at 9.46.31 AM.png Screen Shot 2019-10-28 at 9.46.24 AM.png Screen Shot 2019-10-28 at 9.46.17 AM.png

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

          Click on the report button, it will show you the stack trace.

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

            oh! sorry !
            This is my stack trace.
            Screen Shot 2019-10-29 at 10.06.44 AM.png Screen Shot 2019-10-29 at 10.10.17 AM.png

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

              From the crash it seems that the signature is not valid. Are you sure you use the right one ?

              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
              1
              • O Offline
                O Offline
                OtisLin
                wrote on last edited by
                #7

                @SGaist said in Codesign and deploy on osx:

                From the crash it seems that the signature is not valid. Are you sure you use the right one ?

                After I used "macdeployqt my.app -codesign=developerID", I did not get any error.
                And I try to check By "codesign --display --verbose=4 my.app".
                The result like this picture.
                螢幕快照 2019-10-30 上午9.32.13.png

                Forgive me, I am not sure it is safe if I show the developerID so I cover it.
                in this picture message I think is right?

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

                  Do you have several ID's configured ?

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

                  O 2 Replies Last reply
                  0
                  • SGaistS SGaist

                    Do you have several ID's configured ?

                    O Offline
                    O Offline
                    OtisLin
                    wrote on last edited by
                    #9

                    @SGaist

                    Oh! My Keychain has multiple ID, I try to use another mac, it is only have one ID, it is wrok!
                    I think the problem is like you said, several ID's configured.
                    thanks a lot for your help.

                    1 Reply Last reply
                    0
                    • SGaistS SGaist

                      Do you have several ID's configured ?

                      O Offline
                      O Offline
                      OtisLin
                      wrote on last edited by
                      #10

                      @SGaist
                      sorry, how to change state to solved for this topic?

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

                        You can use the "Topic Tools" button for that.

                        In case, one answer is the exact answer you need, you can use the vertical three dots menu on the right of the post to mark it as such in place of using the Topic Tools button.

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

                        O 1 Reply Last reply
                        0
                        • SGaistS SGaist

                          You can use the "Topic Tools" button for that.

                          In case, one answer is the exact answer you need, you can use the vertical three dots menu on the right of the post to mark it as such in place of using the Topic Tools button.

                          O Offline
                          O Offline
                          OtisLin
                          wrote on last edited by
                          #12

                          @SGaist
                          Thanks.

                          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