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 with entitlements on Mac OS
Forum Updated to NodeBB v4.3 + New Features

Codesign with entitlements on Mac OS

Scheduled Pinned Locked Moved Unsolved General and Desktop
askcodesignentitlementsprovisionprofi
2 Posts 2 Posters 3.6k 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.
  • J Offline
    J Offline
    jj_lakemont
    wrote on 28 Jun 2017, 00:12 last edited by jj_lakemont
    #1

    I create a mac app using Qt and Apple's Network extension for VPN connection. From Apple Developer's console, I enabled personal VPN, and download distribution provisionprofile. then I loaded the provision profile into Xcode, that gives me an entitlement file (xcent). Finally, I built my app with Qt and a script. When I sign the app, I first copy the provision profile into Contents of the app as embedded.provisionprofile, then codesign it:

    codesign --entitlement my_entitlement_file MyApp

    However, when I download the app to a new Mac, taskgated-helper kills the app with signal 9. in system log, I can see the following messages:

    taskgated-helper MyApp: Unsatisfied Entitlements: com.apple.developer.networking.vpn.api, com.apple.developer.team-identifier
    ...
    codesignature validation faile fatally: when validating Myapp: Code has restricted entitlements, but the validation of its code signature failed.
    ...

    If I open the package content and double click embedded.provisionprofile to install, then the app can run without error.

    It appears that the way I add embedded.provisionprofile is not quite right. taskgated-helper doesn't find provisionprofile inside the app.

    What is the proper way to add embedded.provisionprofile into app bundle?

    1 Reply Last reply
    1
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 28 Jun 2017, 10:20 last edited by
      #2

      Hi and welcome to devnet,

      Did you try with macdeplyoqt ?

      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

      2/2

      28 Jun 2017, 10:20

      • Login

      • Login or register to search.
      2 out of 2
      • First post
        2/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved