1 Reply
      Latest reply: Oct 3, 2016 1:21 AM by eskimo RSS
      chris204 Level 1 Level 1 (0 points)

        I'm using Xcode 8 and Automatic Provisioning. I'm using HotspotHelper and have the correct entitlements and a provisioning profile that was working. In the provisioning protal I added APN and regenerated all the provisioning profiles, including the ones created by Xcode. When trying to run in debug on a device I get  "The executable was signed with invalid entitlements." When I examined the provisioning profile with the security tool the com.apple.developer.networking.networkextension and com.apple.developer.networking.HotspotHelper keys are missing. After trying a few things I decided to delete the provisioning profiles created by Xcode and see if they would be recreated. They were not. When I check the provisioning profiles at ~/Library/MobileDevice/Provisioning Profiles that were automatically downloaded by Xcode I find a profile that does not exist on the web portal and still doesn't contain the networking extension entitlements. How can I fix this? I would rather not go back to having to manage my profiles manually but if that is the only way then so be it.

        • Re: HotspotHelper entitlement not in provisioning profile.
          eskimo Apple Staff Apple Staff (8,305 points)

          If you’re using special entitlements, like com.apple.developer.networking.HotspotHelper, you will have to manually manage your code signing.  Xcode’s entitlement handling is focused on the App ID; does not have any way to deal with special entitlements added via a provisioning profile template.

          Share and Enjoy

          Quinn “The Eskimo!”
          Apple Developer Relations, Developer Technical Support, Core OS/Hardware
          let myEmail = "eskimo" + "1" + "@apple.com"