Skip to content

[SwiftPM Add2App] Create build scripts that are required to ensure correct build mode is used #181222

Description

@vashworth

When integrating into the existing Xcode project a script will need to be added to the scheme's Pre-Action to swap the FlutterPluginRegistrant/Sources and FlutterPluginRegistrant/Package.swift symlink to the appropriate build mode.

Another script will be added as a Build Phase (after embedding), which will validate that the correct artifacts are embedded for the targeted build configuration as a safeguard. It will also run flutter assemble if FLUTTER_APPLICATION_PATH is set. This will re-build the App.framework with any Dart code changes.

In addition, we will also provide a swift package plugin (FlutterConfigurationPlugin), which will allow the developer to manually switch the build mode via Xcode's GUI.

Image

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listcustomer: castawayteam-iosOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-iosTriaged by iOS platform team

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions