Skip to content

Xcode warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs #112015

@jmagman

Description

@jmagman

iOS version at #108321 fixed with #108331

New warnings in Xcode 14 beta 3 on a new flutter create project:

$ flutter build macos
Running "flutter pub get" in test_create...                        467ms
...

warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Flutter Assemble' from project 'Runner')
Building macOS application...

Screen Shot 2022-07-25 at 2 31 00 PM

Unchecking adds:

		9740EEB61CF901F6004384FC /* Run Script */ = {
			isa = PBXShellScriptBuildPhase;
+			alwaysOutOfDate = 1;
			buildActionMask = 2147483647;

Xcode isn't handling input/output, flutter is, so it is correct to be unchecked.

This is happening on macOS (only Runner target, not Flutter Assemble, which is using inputs/outputs so the option should be checked).

Update templates and add a migration. Note this check box exists on Xcode 13 so we don't need to increase the minimum version to 14 before doing this.

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listplatform-macosBuilding on or for macOS specificallytoolAffects the "flutter" command-line tool. See also t: labels.

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