mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Remove dev branch reference from build ios-frameworks error (#115166)
This commit is contained in:
parent
b2b839166e
commit
2c44f4a68b
@ -318,7 +318,7 @@ class BuildIOSFrameworkCommand extends BuildFrameworkCommand {
|
|||||||
final GitTagVersion gitTagVersion = flutterVersion.gitTagVersion;
|
final GitTagVersion gitTagVersion = flutterVersion.gitTagVersion;
|
||||||
if (!force && (gitTagVersion.x == null || gitTagVersion.y == null || gitTagVersion.z == null || gitTagVersion.commits != 0)) {
|
if (!force && (gitTagVersion.x == null || gitTagVersion.y == null || gitTagVersion.z == null || gitTagVersion.commits != 0)) {
|
||||||
throwToolExit(
|
throwToolExit(
|
||||||
'--cocoapods is only supported on the dev, beta, or stable channels. Detected version is ${flutterVersion.frameworkVersion}');
|
'--cocoapods is only supported on the beta or stable channel. Detected version is ${flutterVersion.frameworkVersion}');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Podspecs use semantic versioning, which don't support hotfixes.
|
// Podspecs use semantic versioning, which don't support hotfixes.
|
||||||
|
@ -129,7 +129,7 @@ class BuildMacOSFrameworkCommand extends BuildFrameworkCommand {
|
|||||||
gitTagVersion.z == null ||
|
gitTagVersion.z == null ||
|
||||||
gitTagVersion.commits != 0)) {
|
gitTagVersion.commits != 0)) {
|
||||||
throwToolExit(
|
throwToolExit(
|
||||||
'--cocoapods is only supported on the dev, beta, or stable channels. Detected version is ${flutterVersion.frameworkVersion}');
|
'--cocoapods is only supported on the beta or stable channel. Detected version is ${flutterVersion.frameworkVersion}');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Podspecs use semantic versioning, which don't support hotfixes.
|
// Podspecs use semantic versioning, which don't support hotfixes.
|
||||||
|
@ -76,7 +76,7 @@ void main() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
expect(() => command.produceFlutterPodspec(BuildMode.debug, outputDirectory),
|
expect(() => command.produceFlutterPodspec(BuildMode.debug, outputDirectory),
|
||||||
throwsToolExit(message: 'Detected version is $frameworkVersion'));
|
throwsToolExit(message: '--cocoapods is only supported on the beta or stable channel. Detected version is $frameworkVersion'));
|
||||||
}, overrides: <Type, Generator>{
|
}, overrides: <Type, Generator>{
|
||||||
FileSystem: () => memoryFileSystem,
|
FileSystem: () => memoryFileSystem,
|
||||||
ProcessManager: () => FakeProcessManager.any(),
|
ProcessManager: () => FakeProcessManager.any(),
|
||||||
@ -106,7 +106,7 @@ void main() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
expect(() => command.produceFlutterPodspec(BuildMode.debug, outputDirectory),
|
expect(() => command.produceFlutterPodspec(BuildMode.debug, outputDirectory),
|
||||||
throwsToolExit(message: 'Detected version is $frameworkVersion'));
|
throwsToolExit(message: '--cocoapods is only supported on the beta or stable channel. Detected version is $frameworkVersion'));
|
||||||
}, overrides: <Type, Generator>{
|
}, overrides: <Type, Generator>{
|
||||||
FileSystem: () => memoryFileSystem,
|
FileSystem: () => memoryFileSystem,
|
||||||
ProcessManager: () => FakeProcessManager.any(),
|
ProcessManager: () => FakeProcessManager.any(),
|
||||||
@ -313,7 +313,7 @@ void main() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
expect(() => command.produceFlutterPodspec(BuildMode.debug, outputDirectory),
|
expect(() => command.produceFlutterPodspec(BuildMode.debug, outputDirectory),
|
||||||
throwsToolExit(message: 'Detected version is $frameworkVersion'));
|
throwsToolExit(message: '--cocoapods is only supported on the beta or stable channel. Detected version is $frameworkVersion'));
|
||||||
}, overrides: <Type, Generator>{
|
}, overrides: <Type, Generator>{
|
||||||
FileSystem: () => memoryFileSystem,
|
FileSystem: () => memoryFileSystem,
|
||||||
ProcessManager: () => FakeProcessManager.any(),
|
ProcessManager: () => FakeProcessManager.any(),
|
||||||
@ -343,7 +343,7 @@ void main() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
expect(() => command.produceFlutterPodspec(BuildMode.debug, outputDirectory),
|
expect(() => command.produceFlutterPodspec(BuildMode.debug, outputDirectory),
|
||||||
throwsToolExit(message: 'Detected version is $frameworkVersion'));
|
throwsToolExit(message: '--cocoapods is only supported on the beta or stable channel. Detected version is $frameworkVersion'));
|
||||||
}, overrides: <Type, Generator>{
|
}, overrides: <Type, Generator>{
|
||||||
FileSystem: () => memoryFileSystem,
|
FileSystem: () => memoryFileSystem,
|
||||||
ProcessManager: () => FakeProcessManager.any(),
|
ProcessManager: () => FakeProcessManager.any(),
|
||||||
|
Loading…
Reference in New Issue
Block a user