Skip to content

fix(ios): point flavor xcconfigs at existing entrypoints - #120

Merged
amaury901130 merged 1 commit into
mainfrom
fix/ios-flavor-targets
Sep 22, 2026
Merged

amaury901130 merged 1 commit into
mainfrom
fix/ios-flavor-targets

Conversation

@amaury901130

Copy link
Copy Markdown
Collaborator

Description

The iOS flavor configs and the README build instructions reference entrypoints that don't exist or are the wrong ones:

File Before After
app/ios/Flutter/Release.xcconfig FLUTTER_TARGET=lib/main/env/main.dart (doesn't exist) lib/main.dart (the prod entrypoint)
app/ios/qa.xcconfig FLUTTER_TARGET=lib/main/env/main_dev.dart, PREFIX=dev lib/main/env/main_qa.dart, PREFIX=qa
README.md § Build Production App flutter build appBundle -t lib/main/env/main.dart --dart-define-from-file=env_prod.json flutter build appbundle -t lib/main.dart --dart-define-from-file=env/.prod, plus a note that the file must set ENV=prod (that's how init.dart picks the dotenv file)

PREFIX isn't read anywhere in the iOS or Android projects, so that change only keeps the QA file consistent.

Issue

known-issues #5 in #117.

Preview

N/A

Notes:

  • ⚠️ Not built locally, because no Flutter SDK or Xcode build was available where this was written. Please verify with cd app && flutter build ios --flavor qa --no-codesign and an Archive of the Runner scheme (Release).
  • These xcconfigs set FLUTTER_TARGET after #include "Generated.xcconfig", so they override the target that flutter build -t writes there. That behaviour is unchanged by this PR, but reviewers may want to decide whether the xcconfigs should set FLUTTER_TARGET at all.
  • env/.prod isn't added: its API URL is project-specific.
  • The README hunk is in § Build Production App. chore: adopt FVM, migrate to Melos 7, upgrade dependencies #116 edits § Initial Setup and docs: add CLAUDE.md and architecture/development docs #117 adds a section near the top, so there should be no conflicts.

🤖 Generated with Claude Code

- Release.xcconfig: FLUTTER_TARGET referenced lib/main/env/main.dart,
  which does not exist; the prod entrypoint is lib/main.dart.
- qa.xcconfig: the QA flavor ran main_dev.dart (and PREFIX=dev); use
  main_qa.dart / PREFIX=qa.
- README: build commands used the same missing path, a nonexistent
  env_prod.json, and `appBundle` (the subcommand is `appbundle`).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@tarruk
tarruk requested review from tarruk and a lite review from Copilot September 22, 2026 19:55

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Environment selection, production build configuration, and dotenv handling remain unresolved.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 High severity · 2 Medium severity · 1 Low severity

Open (4)
What changed in this PR

Updates iOS flavor configurations and production build documentation to use existing Dart entrypoints.

Changes:

  • Points Release and QA xcconfigs to valid entrypoints.
  • Updates QA flavor metadata.
  • Revises production build commands and environment guidance.
File Description
README.md Updates production build documentation and environment setup.
app/​ios/​qa.xcconfig Uses the QA Dart entrypoint and prefix.
app/​ios/​Flutter/​Release.xcconfig Uses the production Dart entrypoint.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +4 to 5
FLUTTER_TARGET=lib/main.dart
FLUTTER_BUILD_NAME=2.0.0
Comment thread README.md

The production entry point is `lib/main.dart`. Run the commands from `app/`. The env file passed to
`--dart-define-from-file` must define `ENV=prod`, because `init.dart` then loads `env/.prod` as the dotenv file.
Create `app/env/.prod` first (following `app/env/.dev`) and don't commit real secrets.
Comment thread app/ios/qa.xcconfig
#include "Generated.xcconfig"

FLUTTER_TARGET=lib/main/env/main_dev.dart
FLUTTER_TARGET=lib/main/env/main_qa.dart
Comment thread README.md

```text
flutter build appBundle -t lib/main/env/main.dart --dart-define-from-file=env_prod.json
flutter build appbundle -t lib/main.dart --dart-define-from-file=env/.prod
@amaury901130
amaury901130 merged commit e4b3259 into main Sep 22, 2026
1 check passed
@amaury901130
amaury901130 deleted the fix/ios-flavor-targets branch September 22, 2026 20:06
amaury901130 added a commit that referenced this pull request Sep 22, 2026
- known-issues: mark #1 and #5 resolved, narrow #2 to the remaining env
  layout drift, update #3/#13 for the new common and domain tests
- overview, CLAUDE.md, feature guide: drop the mapError warning, describe
  the API_URL fallback
- testing, bootstrap customization: current test dirs and sonar.tests

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants