Add bitcode deprecation note for add-to-app iOS developers (#112900)

This commit is contained in:
Jenn Magder 2022-10-05 19:51:23 -07:00 committed by GitHub
parent d440ee8224
commit 7dd65c16c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View File

@ -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);

View File

@ -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();
}