Native App Build failing with Mendix 11 upgrade

0
We recently upgraded our application to Mendix 11.12.3 and are encountering an issue when attempting to generate a new native app build using the Native Builder (We are using Native Builder  v.1.0.147). The build process starts normally, but the build ultimately fails when trying to write to the repository, and the Native Builder does not generate a successful build. I even reinstalled Mendix Studio Pro 11, which also reinstalled the Native Mobile Builder and I am still getting the same issue, the build still fails.While reviewing the logs, I noticed several GitHub-related messages and other errors/warnings during the build process.  Has anyone else  ran into this issue?  If so, how did you resolve it?  Any suggestion will be greatly appreciated.  From the From the native_builder.log file, I see the following messages toward the end of the file:2026-08-29T23:36:03.389Z: (info) [GithubKnownDependencyResolver] 'Retrieving known dependencies from mendix/native-template on ref tags/v19.1.4'2026-08-29T23:36:03.390Z: (info) [github] 'Retrieving raw contents of file .mx/known_dependencies.json from ref tags/v19.1.4...'2026-08-29T23:36:03.419Z: (info) [NativeDependenciesStore] { knownDependencies: {} }2026-08-29T23:36:03.419Z: (info) [Analytics] '/advanced/build: native_dependencies_collection_finished'2026-08-29T23:36:03.419Z: (info) [Analytics] '/advanced/build: native_dependencies_collection_finished'2026-08-29T23:36:03.420Z: (info) [Analytics] '/advanced/build: project_native_dependencies'2026-08-29T23:36:03.420Z: (info) [Analytics] '/advanced/build: project_native_dependencies'2026-08-29T23:36:03.433Z: (info) [mxbuild] 'Running mxbuild...'2026-08-29T23:37:48.857Z: (info) [template] 'Staging image resources..'2026-08-29T23:37:48.859Z: (info) [template] 'Staging font resources..'2026-08-29T23:37:48.907Z: (info) [template] 'Staging firebase resources..'2026-08-29T23:37:48.914Z: (info) [template] 'Committing template resources..'2026-08-29T23:37:48.928Z: (info) [template] 'Committing template configuration..'2026-08-29T23:37:49.086Z: (info) [xcode] 'Skipping project configuration update as NativeTemplate/native_dependencies.json has already been included'2026-08-29T23:37:49.095Z: (info) [github] 'Retrieving contents of file .template_version from ref heads/master...'2026-08-29T23:37:49.423Z: (error) [github] 'Failed retrieving file .template_version'2026-08-29T23:37:49.426Z: (info) [github] 'Creating new repository paa-healthcare-application from template...'2026-08-29T23:37:49.426Z: (info) [github] 'Creating new repository, paa-healthcare-application for KermitPPI...'2026-08-29T23:37:49.562Z: (warn) [console] '[@octokit/request] "POST https://api.github.com/user/repos" is deprecated. It is scheduled to be removed on Fri, 10 Mar 2028 00:00:00 GMT. See https://docs.github.com/en/rest/about-the-rest-api/api-versions'2026-08-29T23:37:49.566Z: (error) [github] 'Failed to create repository paa-healthcare-application for KermitPPI'2026-08-29T23:37:49.566Z: (info) [github] 'Repository exists'2026-08-29T23:37:49.566Z: (info) [github] 'Retrieving repository KermitPPI/paa-healthcare-application...'2026-08-29T23:37:49.723Z: (error) [github] 'Unable to create new repository from template repository'2026-08-29T23:37:50.033Z: (info) [github] 'Creating commit to paa-healthcare-application/master with message: Commit local changes...'2026-08-29T23:37:50.185Z: (info) [Analytics] '/advanced/build: project_release_build_failed'2026-08-29T23:37:50.186Z: (info) [Analytics] '/advanced/build: project_release_build_failed'
asked
3 answers
1

Hi Monique,


Are you enabling the 'recreate repository' toggle switch in the native builder, if so it's wroth dsiabling that option and trying again.


If that doesn't work it also seems like this might be related to the github token you are using, does the supplied token have access to the specific repo where your template is stored?

Also worth checking if your token has access to read, write and create new repos?


I would also try Marcel's suggestion as that skip having to push to Github and likely solve your issue.



answered
0

We don't let the native builder commit to the repository directly. Instead, we let the builder output to a local folder, which is a clone of the GitHub repo, using any git client like GitHub Desktop, VS code, cmd line. The first time you will need to create a new repo from the local folder.

After the build completes we commit and push the repo ourselves. Which in our case triggers the native app build in Bitrise.

This also allows us to check the build output first.

answered
0

Here is the change I had to make in github.

answered