# 選擇哪些裝置可以加入你的公開 Beta 版

> 讓 Agent 設定人們透過公開連結加入外部 TestFlight 群組時需要的裝置和系統版本，然後檢查、更改或移除這些條件。

Source: https://air.build/tw/docs/app-store/limit-who-can-join-your-beta/

公開連結讓任何人都能加入外部 TestFlight 群組，不需要電子郵件邀請（請參閱[用 TestFlight 分享 Beta 版](https://air.build/tw/docs/app-store/test-with-testflight/#share-a-public-link)）。你可以讓連結更嚴格：指定人們需要的裝置和系統版本，只有符合條件的人才能透過它加入。Apple 稱之為測試人員條件。請參閱 Apple 的 [Invite testers using a public link](https://developer.apple.com/help/app-store-connect/test-a-beta-version/invite-external-testers#invite-testers-using-a-public-link)。

> [!NOTE]
> **TestFlight** 標籤頁可以開啟並分享公開連結，但無法設定條件。請在專案的聊天中詢問 Agent。它會使用 `asc testflight recruitment` 和 `asc testflight groups`（列在 [asc：建置版本與 TestFlight](https://air.build/tw/docs/cli/asc-builds/#testflight) 的 `testflight` 下）。

## 開始之前

你需要一個包含建置版本並已開啟公開連結的外部群組：在群組中點一下 **啟用邀請連結**，然後再點一下 **啟用邀請連結** 確認。請參閱[用 TestFlight 分享 Beta 版](https://air.build/tw/docs/app-store/test-with-testflight/#share-a-public-link)。

## 查看可以選擇什麼

在專案的聊天中提出要求，例如：

```text
Which devices and iOS versions can I require for my public TestFlight link?
```

Agent 會執行 `asc testflight recruitment options`，列出 Apple 可用於條件的裝置類型和系統版本。請從該列表中選擇。

## 設定條件

提出要求，例如：

```text
Only let people join the "Friends" TestFlight group through the public link if they have an iPhone on iOS 26 or later, or an iPad on iPadOS 26 or later.
```

1. Agent 找到該群組。條件屬於單一群組，所以如果你有多個群組，請說出群組名稱。
2. 它用 `asc testflight recruitment set` 儲存你的條件：每種裝置類型的最低系統版本，以及你給出的最高版本。`asc` 接受 iPhone、iPad、Mac、Apple Vision、Apple TV 和 Apple Watch。
3. 如果群組已經有條件，新條件會取代舊條件。每次都要說出所有可以加入的裝置類型，而不只是你要更改的那一種。
4. Agent 會告訴你它儲存了什麼。

Apple 的說明表示，人們必須符合條件才能透過公開連結加入。加入之後，測試人員可以從他們測試所用的任何裝置傳送意見回饋，而不只是你指定的裝置。請參閱 Apple 的 [View and manage tester information](https://developer.apple.com/help/app-store-connect/test-a-beta-version/view-and-manage-tester-information)。

## 檢查群組的建置版本是否適合

Apple 的說明要求你確認群組中的建置版本可以在你指定的裝置上執行。提出要求，例如：

```text
Does the Friends group have a build that fits its tester criteria?
```

Agent 會用 `asc testflight groups compatibility view` 檢查，並告訴你該群組是否有適合的建置版本。如果沒有，請給群組一個適合的建置版本：請參閱[用 TestFlight 分享 Beta 版](https://air.build/tw/docs/app-store/test-with-testflight/#manage-a-group)。

## 檢查或移除條件

要查看群組要求什麼，提出要求，例如：

```text
What does someone need to join the Friends group through the public link?
```

Agent 會用 `asc testflight groups recruitment view` 讀取。要更改條件，說出它們應該是什麼。Agent 會重新設定，新條件會取代舊條件。

要移除條件，提出要求，例如：

```text
Remove the tester criteria from the Friends group.
```

`asc testflight recruitment delete` 需要 `--confirm`，所以 Agent 會先詢問你。刪除的條件無法復原。之後要再次限制連結，請讓 Agent 重新設定條件。

## 不讓 iPhone 建置版本出現在 Mac 或 Apple Vision 上

群組也決定其 iOS 建置版本是否在搭載 Apple 晶片的 Mac 和 Apple Vision 上提供。提出要求，例如：

```text
Don't offer the Friends group's iPhone build on Macs or Apple Vision.
```

Agent 會用 `asc testflight groups edit` 更改群組。要再次提供，用同樣的方式提出要求。

## 限制可以加入的人數

Apple 也允許你為公開連結設定測試人員人數上限：可以透過它加入群組的人數。提出要求，例如：

```text
Let at most 200 people join the Friends group through the public link.
```

Agent 會用 `asc testflight groups edit` 為群組設定上限。Apple 的 [Invite testers using a public link](https://developer.apple.com/help/app-store-connect/test-a-beta-version/invite-external-testers#invite-testers-using-a-public-link) 列出了你可以選擇的數字。

## 常見問題

**可以在 TestFlight 標籤頁上設定條件嗎？**

不可以。該標籤頁可以開啟公開連結、分享它並列出測試人員。請詢問 Agent，或在網頁版 App Store Connect 中設定條件。

**有人無法透過連結加入。**

他們的裝置或系統版本可能不符合條件，或者連結可能已達到測試人員人數上限。向 Agent 詢問群組的條件，以及連結的數據，其中包括有多少人不符合條件：請參閱[查看測試人員如何使用你的 Beta 版](https://air.build/tw/docs/app-store/see-how-testers-use-your-beta/)。

**條件適用於我透過電子郵件邀請的測試人員嗎？**

Apple 的說明描述的是公開連結的條件。要選擇誰收到電子郵件邀請，只邀請那些人即可：請參閱[用 TestFlight 分享 Beta 版](https://air.build/tw/docs/app-store/test-with-testflight/#invite-testers)。

**Agent 說裝置系列必須是列表中的一項。**

`asc` 只接受 IPHONE、IPAD、MAC、VISION、APPLE_TV 和 APPLE_WATCH。請依照 Agent 在選項下列出的方式說出裝置。

**可以限制內部群組嗎？**

內部群組沒有公開連結。其測試人員是你自己加入的 App Store Connect 團隊成員。
