Skip to catalogue

240

build variant

also scheme, product flavor, bundle id

Debug and release are different apps. They do not share a bundle id or a push key.

What is build variant?

A build variant is a scheme, flavor, or configuration with its own application id, API host, icons, and signing. Debug installed beside release is a feature. Debug signed with the production push certificate, talking to the production API, is how you notify every customer from a laptop.

Why does build variant matter when vibe coding?

The draft has one bundle id and a boolean for the API host. The release build still points at localhost because the flag was compiled wrong. Or the debug build uses the live database.

How do you do build variant?

Split bundle ids. Compile the host in. Use separate signing and push credentials. Show a visible mark on non-release builds.

How do you ask a model for build variant?

Add a debug variant of (app) with its own bundle id, API host, and signing. Release must not contain the debug host. Debug must not use the production push certificate.

What goes wrong with build variant?

A runtime if that reads an env var from a file the release build still copies in.

adjacent