如何通过 API 将 UDID 添加到现有的临时配置文件中?

问题描述 投票:0回答:0

有没有办法通过 API 做到这一点?我可以使用下面的行将设备添加到帐户,但我希望能够通过我正在构建的自动化工具将设备添加到 provisioning profile,而无需导航网站 GUI。

不幸的是,我们不符合企业资格,但我们确实有新的承包商经常加入该项目,该项目应该自动化。

将设备添加到帐户这有效

curl -v -X POST "https://api.appstoreconnect.apple.com/v1/devices" -H "Authorization: Bearer ${token}" -H "Content-Type: application/json" -d "{\"data\": {\"attributes\": {\"name\": \"${device_name}\",\"platform\": \"IOS\",\"udid\": \"${udid}\"},\"type\": \"devices\"}}"

我尝试了下面的代码,但得到了 403。

将设备添加到 Prov 配置文件这不起作用

curl -v -X PATCH "https://api.appstoreconnect.apple.com/v1/profiles/${profile_id}" -H "Authorization: Bearer ${token}" -H "Content-Type: application/json" -d "{\"data\": {\"id\": \"${profile_id}\",\"type\": \"profiles\",\"attributes\": {\"devices\": [\"${udid}\"]}}}"

ios app-store-connect ad-hoc-distribution
© www.soinside.com 2019 - 2024. All rights reserved.