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. Codesign Qt app for MacOS with team provision profile

Codesign Qt app for MacOS with team provision profile

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
mac oscodesign
9 Posts 4 Posters 2.5k 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.
  • F Offline
    F Offline
    flumgung
    wrote on last edited by
    #1

    Hi!
    I want to code sign a qt app built for Mac OS to include a "Team provisioning profile". I can not find any way to include this in my app. Anybody have any successful experience with this? I can't find any info on how to manually include this without xcode..
    Thanks
    Peter

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

      Hi and welcome to devnet,

      IIRC, with the latest version of macdeployqt you have the -codesign parameter where you should be able to give the identity you want.

      Hope it helps

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

      F 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        IIRC, with the latest version of macdeployqt you have the -codesign parameter where you should be able to give the identity you want.

        Hope it helps

        F Offline
        F Offline
        flumgung
        wrote on last edited by
        #3

        @SGaist Thanks for your reply. Unfortunately the codesign option does not support including "Team provisioning profiles" its actually not part of the signing process. Xcode embeds it just before the codesigning process starts. But I can't figure out what it does..

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

          What version of Xcode 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
          • W Offline
            W Offline
            wesblake
            wrote on last edited by
            #5

            Hi. Did anyone every figure this out? I'm dealing with this same thing now. We have an app that's in it's 3rd release now and want to add a provisioning profile to it. We use Qt (5.15.2) and have a build script that uses macdeployqt, codesign, packagebuild, etc to create final package for distribution (to internal testers) and app store. I can't find anything on how to add our provisioning profile though.

            1 Reply Last reply
            0
            • W Offline
              W Offline
              wesblake
              wrote on last edited by
              #6
              • In case anyone still needs it, I figured it out. Create your provisioning profile on developer portal as a "Distribution->App Store" type. Later select the type that matches the certs you're signing with (Mac App Distribution being the old type I'm still using and just Distribution is the new type, but it has to match up!)
              • list itemDownload the provisioning profile and rename it to embedded.provisioningprofile
              • Copy it to your.app/Contents
              • Now when you sign/package, make sure you also sign that new file in the .app
                Turns out it's that simple, yet nothing on Apple's docs tell you this, had to piece together 20 cryptic pages.
              W 1 Reply Last reply
              2
              • W wesblake
                • In case anyone still needs it, I figured it out. Create your provisioning profile on developer portal as a "Distribution->App Store" type. Later select the type that matches the certs you're signing with (Mac App Distribution being the old type I'm still using and just Distribution is the new type, but it has to match up!)
                • list itemDownload the provisioning profile and rename it to embedded.provisioningprofile
                • Copy it to your.app/Contents
                • Now when you sign/package, make sure you also sign that new file in the .app
                  Turns out it's that simple, yet nothing on Apple's docs tell you this, had to piece together 20 cryptic pages.
                W Offline
                W Offline
                wesblake
                wrote on last edited by
                #7

                @wesblake Ok not quite. That allowed it to pass in Transporter, no more errors about not being available in testflight without a profile. However, once uploaded to the store it now shows "Not Available for Testing".
                Thanks Apple for the incredible documentation (or rather assuming everyone must use your stuff!)

                1 Reply Last reply
                0
                • W Offline
                  W Offline
                  wesblake
                  wrote on last edited by
                  #8

                  Ok, fully working now, in addition to the steps above, you must put the following in your entitlements file:

                  <key>com.apple.application-identifier</key>
                  <string>XXXXXXX.com.sample.app</string>
                  <key>com.apple.developer.team-identifier</key>
                  <string>XXXXXXX</string>
                  

                  Everything works now, yay!

                  A 1 Reply Last reply
                  1
                  • W wesblake

                    Ok, fully working now, in addition to the steps above, you must put the following in your entitlements file:

                    <key>com.apple.application-identifier</key>
                    <string>XXXXXXX.com.sample.app</string>
                    <key>com.apple.developer.team-identifier</key>
                    <string>XXXXXXX</string>
                    

                    Everything works now, yay!

                    A Offline
                    A Offline
                    Augustas
                    wrote on last edited by Augustas
                    #9

                    @wesblake Hello,
                    Using the information you've provided I've managed to upload my package to the appstore using Transporter, however even after inserting com.apple.application-identifier and com.apple.developer.team-identifier to my .entitlements file, I still get "Not Available for Testing" status in TestFlight.

                    Could you share any other entries in the entitlements file, or any other leads to resolve this issue?

                    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