> For the complete documentation index, see [llms.txt](https://huuhieu.gitbook.io/flutter/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://huuhieu.gitbook.io/flutter/deployment/publish-cho-ios.md).

# Publish cho Ios

## **Bước 1: Thêm mới một Identifiers**

Tạo mới một [**App ID**](https://developer.apple.com/account/resources/identifiers/add/bundleId) cho ứng dụng (Khi tạo mới). Và chọn một số dịch vụ mà App cần sử dụng như: Push notification, Wallet, ...

![Tạo App Id cho ứng dụng](/files/-M4DWv0wQ8-JpuffFfHS)

## **Bước 2: Tạo App trong App Store Connect**

Tạo mới một ứng dụng trong [**My App**](https://appstoreconnect.apple.com/). Với SKU là AppID của project flutter và chọn BundleID là Identifiers vừa được tạo ở bước trên.

![Tạo App trong App Store Connect](/files/-M4DX8wgKus0nwiOlHVO)

Sau khi bổ đẩy đủ thông tin về ứng dụng ở phần **APP STORE INFORMATION**. Bài hướng dẫn sẽ tập trung vào phần **IOS APP** với:

* App Previews and Screenshots: Bắt buộc mỗi ảnh chụp với từng thiết bị: Iphone Xs Max, Iphone 7 Plus, Ipad, ...
* App Store Icon: Ảnh ứng dụng với kích cỡ 1024x1024 nền trắng không bo góc.
* Rating: Trả lời một số câu hỏi để đánh giá giới hạn độ tuổi của ứng dụng.
* Và các thông tin mô tả khác như: Promotional Text, Keywords, URL, Description, Copyright, Contact Information, ...

![Ios App trong App Store Connect](/files/-M4DYJQhIDWpmi8PftLE)

## **Bước 3: Upload lên Store với XCode:**&#x20;

Build Ios bằng câu lệnh bên dưới

```
flutter build ios 
```

Sau đó&#x20;

* Mở thư mục ios bằng Xcode (Flutter > Open IOS module in Xcode.
* Product > Archive. Sau đó chọn Distribute.

![Distribute App với XCode](/files/-M4DZ360Cou-Sv1-_87s)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://huuhieu.gitbook.io/flutter/deployment/publish-cho-ios.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
