Skip to content

Commit 2c44f4a

Browse files
authored
Remove dev branch reference from build ios-frameworks error (#115166)
1 parent b2b8391 commit 2c44f4a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

packages/flutter_tools/lib/src/commands/build_ios_framework.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ class BuildIOSFrameworkCommand extends BuildFrameworkCommand {
318318
final GitTagVersion gitTagVersion = flutterVersion.gitTagVersion;
319319
if (!force && (gitTagVersion.x == null || gitTagVersion.y == null || gitTagVersion.z == null || gitTagVersion.commits != 0)) {
320320
throwToolExit(
321-
'--cocoapods is only supported on the dev, beta, or stable channels. Detected version is ${flutterVersion.frameworkVersion}');
321+
'--cocoapods is only supported on the beta or stable channel. Detected version is ${flutterVersion.frameworkVersion}');
322322
}
323323

324324
// Podspecs use semantic versioning, which don't support hotfixes.

packages/flutter_tools/lib/src/commands/build_macos_framework.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class BuildMacOSFrameworkCommand extends BuildFrameworkCommand {
129129
gitTagVersion.z == null ||
130130
gitTagVersion.commits != 0)) {
131131
throwToolExit(
132-
'--cocoapods is only supported on the dev, beta, or stable channels. Detected version is ${flutterVersion.frameworkVersion}');
132+
'--cocoapods is only supported on the beta or stable channel. Detected version is ${flutterVersion.frameworkVersion}');
133133
}
134134

135135
// Podspecs use semantic versioning, which don't support hotfixes.

packages/flutter_tools/test/commands.shard/hermetic/build_darwin_framework_test.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ void main() {
7676
);
7777

7878
expect(() => command.produceFlutterPodspec(BuildMode.debug, outputDirectory),
79-
throwsToolExit(message: 'Detected version is $frameworkVersion'));
79+
throwsToolExit(message: '--cocoapods is only supported on the beta or stable channel. Detected version is $frameworkVersion'));
8080
}, overrides: <Type, Generator>{
8181
FileSystem: () => memoryFileSystem,
8282
ProcessManager: () => FakeProcessManager.any(),
@@ -106,7 +106,7 @@ void main() {
106106
);
107107

108108
expect(() => command.produceFlutterPodspec(BuildMode.debug, outputDirectory),
109-
throwsToolExit(message: 'Detected version is $frameworkVersion'));
109+
throwsToolExit(message: '--cocoapods is only supported on the beta or stable channel. Detected version is $frameworkVersion'));
110110
}, overrides: <Type, Generator>{
111111
FileSystem: () => memoryFileSystem,
112112
ProcessManager: () => FakeProcessManager.any(),
@@ -313,7 +313,7 @@ void main() {
313313
);
314314

315315
expect(() => command.produceFlutterPodspec(BuildMode.debug, outputDirectory),
316-
throwsToolExit(message: 'Detected version is $frameworkVersion'));
316+
throwsToolExit(message: '--cocoapods is only supported on the beta or stable channel. Detected version is $frameworkVersion'));
317317
}, overrides: <Type, Generator>{
318318
FileSystem: () => memoryFileSystem,
319319
ProcessManager: () => FakeProcessManager.any(),
@@ -343,7 +343,7 @@ void main() {
343343
);
344344

345345
expect(() => command.produceFlutterPodspec(BuildMode.debug, outputDirectory),
346-
throwsToolExit(message: 'Detected version is $frameworkVersion'));
346+
throwsToolExit(message: '--cocoapods is only supported on the beta or stable channel. Detected version is $frameworkVersion'));
347347
}, overrides: <Type, Generator>{
348348
FileSystem: () => memoryFileSystem,
349349
ProcessManager: () => FakeProcessManager.any(),

0 commit comments

Comments
 (0)