mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Add bitcode deprecation note for add-to-app iOS developers (#112900)
This commit is contained in:
parent
d440ee8224
commit
7dd65c16c2
@ -87,7 +87,8 @@ Future<void> _testBuildIosFramework(Directory projectDir, { bool isModule = fals
|
||||
const String outputDirectoryName = 'flutter-frameworks';
|
||||
|
||||
await inDirectory(projectDir, () async {
|
||||
await flutter(
|
||||
final StringBuffer outputError = StringBuffer();
|
||||
await evalFlutter(
|
||||
'build',
|
||||
options: <String>[
|
||||
'ios-framework',
|
||||
@ -96,7 +97,11 @@ Future<void> _testBuildIosFramework(Directory projectDir, { bool isModule = fals
|
||||
'--obfuscate',
|
||||
'--split-debug-info=symbols',
|
||||
],
|
||||
stderr: outputError,
|
||||
);
|
||||
if (!outputError.toString().contains('Bitcode support has been deprecated.')) {
|
||||
throw TaskResult.failure('Missing bitcode deprecation warning');
|
||||
}
|
||||
});
|
||||
|
||||
final String outputPath = path.join(projectDir.path, outputDirectoryName);
|
||||
|
@ -300,6 +300,10 @@ class BuildIOSFrameworkCommand extends BuildFrameworkCommand {
|
||||
'See https://flutter.dev/docs/development/add-to-app/ios/add-flutter-screen#create-a-flutterengine for more information.');
|
||||
}
|
||||
|
||||
globals.printWarning(
|
||||
'Bitcode support has been deprecated. Turn off the "Enable Bitcode" build setting in your Xcode project or you may encounter compilation errors.\n'
|
||||
'See https://developer.apple.com/documentation/xcode-release-notes/xcode-14-release-notes for details.');
|
||||
|
||||
return FlutterCommandResult.success();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user