Skip to content

Fix module creation path in legacy iOS add-to-app setup - #14175

Open
Abdelrahmanessam1254 wants to merge 1 commit into
flutter:mainfrom
Abdelrahmanessam1254:fix-ios-legacy-module-path
Open

Abdelrahmanessam1254 wants to merge 1 commit into
flutter:mainfrom
Abdelrahmanessam1254:fix-ios-legacy-module-path

Conversation

@Abdelrahmanessam1254

Copy link
Copy Markdown

Description of what this PR is changing or adding, and why:

The "Create a Flutter module" step on the legacy iOS add-to-app page runs
cd /path/to/my_flutter before flutter create --template module my_flutter.
That creates the module at /path/to/my_flutter/my_flutter/,
which contradicts the next sentence ("Flutter creates module project under /path/to/my_flutter/")
and breaks the sibling-directory layout that the CocoaPods method expects.

This PR changes the command to cd /path/to/,
matching the Android project setup instructions.

Issues fixed by this PR (if any):

Fixes #12151

PRs or commits this PR depends on (if any):

None.

Presubmit checklist

  • If you are unwilling, or unable, to sign the CLA, even for a tiny, one-word PR, please file an issue instead of a PR.
  • If this PR is not meant to land until a future stable release, mark it as draft with an explanation.
  • This PR follows the Google Developer Documentation Style Guidelines—for example, it doesn't use i.e. or e.g., and it avoids I and we (first-person pronouns).
  • This PR uses semantic line breaks
    of 80 characters or fewer.

@Abdelrahmanessam1254
Abdelrahmanessam1254 requested review from a team and sfshaza2 as code owners December 6, 2026 03:46
@google-cla

google-cla Bot commented Dec 6, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the legacy iOS project setup documentation to correct the directory change command (cd) to point to the parent directory /path/to/ instead of /path/to/my_flutter before creating the Flutter module. I have no feedback to provide.

Running `flutter create --template module my_flutter` inside
/path/to/my_flutter creates the module at /path/to/my_flutter/my_flutter,
which contradicts the next sentence and breaks the sibling-directory
layout the CocoaPods method expects.

Fixes flutter#12151
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.

Flutter add2app paths ahould be correct (ie bugfree), clear/easy to understand and match Android

1 participant