# appstore_create_app

> App Store Connect에 앱 레코드를 만들고, 필요하면 먼저 Apple에 번들 id를 등록합니다.

Source: https://air.build/ko/docs/mcp-tools/appstore_create_app/

App Store Connect에 앱 레코드를 만듭니다. 첫 TestFlight 빌드나 App 심사 제출 전 단계입니다. Apple 팀이 아직 번들 id를 App ID로 등록하지 않았으면 도구가 먼저 등록합니다. Apple은 App Store Connect 자체와 마찬가지로 첫 버전 `1.0`과 함께 앱을 만듭니다. 이름은 앱의 App Store 이름이며 App Store 어디에서도 사용 중이면 안 됩니다. 어떤 도구로도 되돌릴 수 없습니다.

이 도구는 AirBuild에 있는 팀 소유자의 Apple 로그인을 통해 작동합니다([Apple Developer 계정 연결하기](https://air.build/ko/docs/app-store/connect-apple-developer-account/) 참고). 팀의 모든 구성원이 호출할 수 있습니다. 소유자의 로그인이 만료되어 소유자만 갱신할 수 있으면, 소유자가 다시 로그인할 때까지 호출은 아래 문장과 함께 실패합니다.

앱은 팀에 연결된 유일한 Apple 팀이나 `appleTeamId`에 만들어집니다.

| 읽기 전용 | 파괴적 | 멱등 |
| --- | --- | --- |
| 아니요 | 아니요 | 아니요 |

## 입력

| 입력 | 유형 | 필수 | 기본값 | 설명 |
| --- | --- | --- | --- | --- |
| `teamId` | 문자열 (UUID) | yes | — | [list_teams](https://air.build/ko/docs/mcp-tools/list_teams/)의 팀. |
| `appleTeamId` | 문자열 (UUID) | Apple 팀이 여러 개 연결되어 있을 때 | 연결된 유일한 팀 | 앱을 만들 Apple 팀. [appstore_list_apple_teams](https://air.build/ko/docs/mcp-tools/appstore_list_apple_teams/)에서 가져옵니다. |
| `projectId` | 문자열 (UUID) | 이것 또는 `bundleId` | — | [list_projects](https://air.build/ko/docs/mcp-tools/list_projects/)의 이 프로젝트를 위한 앱을 만듭니다. 프로젝트의 번들 id가 사용됩니다. 프로젝트에 번들 id가 있으면 `bundleId`보다 우선합니다. |
| `bundleId` | string | 이것 또는 `projectId` | — | 프로젝트가 번들 id를 지정하지 않을 때(또는 프로젝트가 아직 빌드되지 않았을 때) 쓰는 번들 id. 예: `com.example.app`. |
| `name` | 문자열, 최대 30자 | yes | — | App Store 이름. |
| `sku` | string | no | 번들 id | 앱을 위한 고유 id. 생략하면 번들 id에서 문자, 숫자, `.`, `_`, `-` 이외의 문자를 `-`로 바꾼 값이 사용됩니다. |
| `primaryLocale` | string | no | `en-US` | 스토어 정보의 기본 언어. 예: `en-US`, `zh-Hans`. |
| `platforms` | `IOS`, `MAC_OS`, `TV_OS`, `VISION_OS`의 배열 | no | `["IOS"]` | 앱을 출시할 플랫폼. |

모든 도구가 입력에 대해 하는 검사는 [서버와 로그인](https://air.build/ko/docs/mcp-tools/server/#errors)에 있습니다.

## 결과

텍스트와 `structuredContent`로 제공되는 JSON 객체.

| 필드 | 내용 |
| --- | --- |
| `appId` | 새 앱의 App Store Connect id |
| `name`, `bundleId`, `sku`, `primaryLocale` | Apple이 저장한 그대로 |
| `appleTeamId`, `appleTeam` | 앱이 만들어진 Apple 팀 |
| `registeredBundleId` | 이 호출에서 번들 id를 App ID로 등록했으면 true |
| `projectId` | 앱을 빌드하는 프로젝트(보낸 프로젝트, 또는 그 번들 id를 가진 프로젝트) 또는 null |

```json
{
  "appId": "1234567890",
  "name": "Notes",
  "bundleId": "com.example.notes",
  "sku": "com.example.notes",
  "primaryLocale": "en-US",
  "appleTeamId": "00000000-0000-0000-0000-000000000000",
  "appleTeam": "Example Inc.",
  "registeredBundleId": true,
  "projectId": "00000000-0000-0000-0000-000000000000"
}
```

## 오류

각 오류는 도구 오류(`isError: true`)로 반환됩니다. _기울임꼴_ 단어는 문장 안의 값을 나타냅니다. 모든 도구가 반환할 수 있는 오류는 [서버와 로그인](https://air.build/ko/docs/mcp-tools/server/#errors)에 있습니다.

| Message | 발생 조건 | 해결 방법 |
| --- | --- | --- |
| Pass projectId or bundleId. | 둘 다 보내지 않음 | 하나만 보내세요 |
| No such Project in this Team. | `projectId`가 팀의 프로젝트가 아님 | [list_projects](https://air.build/ko/docs/mcp-tools/list_projects/)에서 가져오세요 |
| This Project has no bundle id yet: it gets one with its first iOS build. Pass bundleId to choose one now. | 프로젝트가 iOS용으로 빌드된 적이 없고 `bundleId`도 보내지 않음 | `bundleId`를 보내거나 먼저 프로젝트를 빌드하세요 |
| The Bundle ID _bundle id_ is already in use by another Apple developer account. Choose a different Bundle ID. | 다른 Apple 개발자 계정이 그 번들 id를 갖고 있음 | 그 사람과 상의해 다른 번들 id를 고르세요 |
| This Apple team is read-only because the signed-in Apple ID is not an Admin or Account Holder. | 소유자의 Apple ID가 그 Apple 팀에서 관리자나 계정 소유자 역할이 아님(개인 등록의 경우: "…because it is an individual enrollment and the signed-in Apple ID is not its Account Holder.") | 팀 소유자가 Apple에서 그 역할을 받거나, 다른 Apple 팀을 사용하세요 |
| This Team has no Apple Developer account connected. The Team's owner connects one in AirBuild (Settings → Apple Developer). | 팀 소유자가 Apple Developer 계정을 연결하지 않음 | 팀 소유자에게 연결을 요청하세요(앱에서: **설정** › **개발자**) |
| None of this Team's Apple teams is connected yet. The Team's owner finishes connecting it in AirBuild. | 소유자의 Apple 팀은 있지만 켜져서 준비된 팀이 없음 | 팀 소유자에게 연결을 마쳐 달라고 요청하세요 |
| This Team works with several Apple teams; pass appleTeamId: _name_ = _id_, …. | Apple 팀이 여러 개 연결되어 있는데 `appleTeamId`를 보내지 않음 | 문장에 나열된 id 중 하나를 `appleTeamId`로 보내세요 |
| That Apple team is not one of this Team's. See appstore_list_apple_teams. | `appleTeamId`가 팀의 Apple 팀이 아님 | [appstore_list_apple_teams](https://air.build/ko/docs/mcp-tools/appstore_list_apple_teams/)에서 가져오세요 |
| The Team owner's Apple sign-in has lapsed and only they can renew it: ask them to open AirBuild and sign in to Apple again, then try once more. | AirBuild에서 팀 소유자의 Apple 로그인이 만료되었고, AirBuild가 소유자 없이 갱신하지 못함 | 팀 소유자에게 알리세요. 소유자가 AirBuild에서 다시 로그인합니다([Apple Developer 계정 연결하기](https://air.build/ko/docs/app-store/connect-apple-developer-account/) 참고). 그 전에 다시 시도하면 같은 응답이 나옵니다 |
| Another Apple account operation is already in progress. | 같은 Apple 계정에서 다른 App Store 작업이 실행 중이었음 | 잠시 후 다시 시도하세요. 소유자가 로그인할 필요는 없습니다 |
| Apple has locked this Apple Account for security reasons. Unlock it at account.apple.com by signing in with the Apple ID and password, then sign in again. | Apple이 팀 소유자의 Apple 계정을 잠금 | 팀 소유자만 account.apple.com에서 잠금을 풀고 AirBuild에서 다시 로그인할 수 있습니다 |
| _Apple's sentence_ | 예를 들어 이름이 이미 사용 중이거나 대기 중인 계약이 있어서 Apple이 앱을 거부함 | Apple의 문장에 따라 조치하세요. 다른 이름을 고르거나, 계정 소유자에게 App Store Connect에서 계약을 수락해 달라고 하세요 |
| App Store Connect: _Apple's sentence_ | Apple이 요청을 거부함. Apple 자체의 문장이 최대 다섯 개 뒤따르며, Apple이 관련 필드를 지정하면 각 문장 뒤 괄호 안에 그 필드가 붙음. App Store Connect에서 대기 중인 Apple 계약도 이렇게 거부됨 | Apple의 문장에 따라 조치하세요. 계약은 Apple Developer 계정의 계정 소유자가 App Store Connect(Business › Agreements)에서 수락합니다 |
| App Store Connect answered _status_. Try again in a moment. | Apple이 이유 없이 거부함 | 잠시 후 다시 시도하세요 |

## 예시

```json
{
  "name": "appstore_create_app",
  "arguments": {
    "teamId": "00000000-0000-0000-0000-000000000000",
    "projectId": "00000000-0000-0000-0000-000000000000",
    "name": "Notes"
  }
}
```
