def provisioning_profiles_via_xcode_api(mac: false)
      req = request(:post) do |r|
        r.url("https://developerservices2.apple.com/services/#{PROTOCOL_VERSION}/#{platform_slug(mac)}/listProvisioningProfiles.action")
        r.params = {
          teamId: team_id,
          includeInactiveProfiles: true,
          onlyCountLists: true
        }
      end

      result = parse_response(req, 'provisioningProfiles')

      csrf_cache[Spaceship::Portal::ProvisioningProfile] = self.csrf_tokens

      result
    end
def provisioning_profiles_via_xcode_api(mac: false)
      req = request(:post) do |r|
        r.url("https://developerservices2.apple.com/services/#{PROTOCOL_VERSION}/#{platform_slug(mac)}/listProvisioningProfiles.action")
        r.params = {
          teamId: team_id,
          includeInactiveProfiles: true,
          onlyCountLists: true
        }
      end

      result = parse_response(req, 'provisioningProfiles')

      csrf_cache[Spaceship::Portal::ProvisioningProfile] = self.csrf_tokens

      result
    end
this endpoint is used by Xcode to fetch provisioning profiles.
 The response is an xml plist but has the added benefit of containing the appId of each provisioning profile.

 Use this method over `provisioning_profiles` if possible because no secondary API calls are necessary to populate the ProvisioningProfile data model.