> For the complete documentation index, see [llms.txt](https://mobiledocs.themeparrot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mobiledocs.themeparrot.com/j2store-mobile-app/outfit/releases/publish-to-apple-store.md).

# Publish to Apple Store

#### Requirements:

* Xcode
* A Paid Apple Developers account
* A valid provisioning profile
* App Development and Distribution certificates

#### Generating a release build through Xcode :

* Add support for the iOS Platform into your app, if you have not done so. Type the command given below into the terminal pointing to your app’s root folder.

```
$ ionic cordova platform add ios
```

* After the addition of the platform creates a build pointing to the –prod flag. Use the command given below to make the prod build.

```
$ ionic cordova prepare ios
```

or

```
ionic cordova build ios --buildFlag="-UseModernBuildSystem=0"
```

* Now, you can find the .xcworkspace file inside /platforms/ios/. Open the file in Xcode.

#### Add your developer account to Xcode :

* Click the left side “+” button at the lower side and log in to your Apple developer account.
* Pick the account and click on the detail, it should open a popup to ask you to request Certificates.
* Pick the valid iOS distribution and development certificate which you generated in your developer account earlier

#### Move the app to the Apple store :

* Before Archiving, set the Target to Generic iOS Device

![](/files/wT2JxH6yuDi7iz19IWDK)

* In the Xcode menu, go to Product > Archive and archive your app for release.

#### Submitting the app to the App Store :

* Generating the archive will build a version of the app which is ready for distribution in the app stores.&#x20;
* After the archive has been created, the Xcode Organizer modal gets opened.
* Pick the last build and click on the “Validate” button to validate App publishing process.
* Once it is successfully validated.&#x20;
* Then, you are able to see the “Upload to App Store” button, just click on the same to submit your app.
* After successfully upload your app is listed in iTunes Connect. From there one can enable the TestFlight for the beta testing version.


---

# 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, and the optional `goal` query parameter:

```
GET https://mobiledocs.themeparrot.com/j2store-mobile-app/outfit/releases/publish-to-apple-store.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
