> For the complete documentation index, see [llms.txt](https://help.twinr.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.twinr.dev/faqs/build-apk-and-ipa.md).

# Build APK & IPA

<details>

<summary>How to build apk and ipa?</summary>

Watch this video <https://youtu.be/oHQnVINWZ50>

</details>

<details>

<summary>Common things to check before taking build</summary>

1. When you have an error, download the error file and try to read it.\
   Even if you are not a developer, you might be able to understand the error. So give it a try.
2. Make sure that if you have push notification enabled in Twinr, it must be enabled in your bundle identifier as well under AppStore account.
3. Make sure you click on Publish to production before taking any build.
4. Contact on live chat or via email if you could not understand it.<br>

</details>

<details>

<summary>How much time it takes to complete a build?</summary>

For android, it takes around 5 mins.\
\
For iOS, it takes 15 mins for the build and then 15 mins to process that build to appear under your TestFlight account.

</details>

<details>

<summary>Do I need to take a new build everytime I do the changes?</summary>

No. if you need to change something in your app which is related to UI changes and not dependant on any third party platform, you can do the changes and click on publish to production. You LIVE users will have the changes immediately on the LIVE app.\
\
If you have changes like, enabling push notification or changing splash screen, you need to create a new version and publish again.

</details>

<details>

<summary>Build <strong>Error:</strong> The build with the version “%” can’t be imported because a later version has been closed for new build submissions</summary>

**Solution:** Create a new version on AppStore. For example, if the current live version is 1.0.0, create new version 1.0.1 using "+" sign in AppStore. Also, create new version 1.0.1 on Twinr

<img src="/files/uh4pAMJGhSbunXV0FBTL" alt="App Store Connect App Store tab for an app whose only version, 1.0, shows a green Ready for Sale status. A blue plus button beside the iOS App heading in the left sidebar is highlighted; it creates the new version number." data-size="original">

</details>

<details>

<summary>Build <strong>Error:</strong> No matching client found for package name 'com.example'</summary>

**Solution:** Package name and bundle id in firebase console and in Twinr must match. Please check that you have used the same package name at both places.\
\
**Image 1 : Firebase Console**\
![Firebase console Project Overview for a project, with the app list highlighted. Two apps are registered, an Android app and an iOS app, each showing its package name or bundle ID underlined beneath the app nickname. A gear icon beside each opens its settings, and an Add app button sits to the right.](/files/cif475tMFpZyQzqvMgRT)\
\
**Image 2 : Twinr Android Package name & iOS bundle id**\
![Twinr portal App Build page with Android selected and the SIGNING INFO tab open. The Android Package Name field is highlighted as step 1, step 2 explains publishing the configuration to production from the Screens menu, and step 3 shows a green confirmation that build signing information is up to date with Update and DOWNLOAD buttons.](/files/xVAJj3NTscXuzTTbzZIA)![Twinr portal App Build page with iOS selected and the SIGNING INFO tab open. The iOS Bundle ID field is highlighted at the top, followed by AppStore Auth Certificate showing File uploaded successfully, then Key ID and Issuer ID fields.](/files/2m60QMcxrj7158aBd2Ik)

</details>

<details>

<summary>Build <strong>Error:</strong> Authentication credentials are missing or invalid</summary>

**Solution:** Check the Signing info form. There must be one of the field information which is incorrect. Check for extra space as well!\
![Twinr portal App Build page with iOS selected in the left menu and the SIGNING INFO tab highlighted. The form lists all required fields: iOS Bundle ID, AppStore Auth Certificate showing File uploaded successfully, Key ID, Issuer ID and Team ID. Check each of these values for typos or trailing spaces.](/files/ipat9bJ4O8525tEYHLrf)

</details>

<details>

<summary>Build <strong>Error:</strong> Couldn't find app 'com.example' on the account of '' on App Store Connect</summary>

**Solution:** Make sure you have created an app under your AppStore account using the same bundle id that you gave in Twinr. Create new app using "+" button. Make sure you have created bundle id for that app. Request a new build after finishing these steps.

![Apps page in App Store Connect with the blue plus button beside the Apps heading highlighted; it opens the New App form for creating an app with your bundle ID.](/files/xTbhunVhdFwhDMjKMQGi)<br>

</details>

<details>

<summary>Build Error: Couldn't find bundle identifier '%' for the user</summary>

**Solution:** Create a bundle identifier on AppStore using same name as you gave on Twinr. See video:\
<https://youtu.be/ZQC_DgKp7-k>

Then create an app using that identifier.\
![Apps page in App Store Connect with the blue plus button beside the Apps heading highlighted; use it to create the app once the matching bundle identifier exists.](/files/xTbhunVhdFwhDMjKMQGi)

</details>
