Build xcarchive command (#67598)

This commit is contained in:
Jenn Magder
2020-10-08 19:51:35 -07:00
committed by GitHub
parent 98d1ad0195
commit 98aeef2d98
7 changed files with 381 additions and 52 deletions

View File

@@ -166,6 +166,29 @@ Future<void> main() async {
if (!await localNetworkUsageFound(outputAppPath)) {
throw TaskResult.failure('Debug bundle is missing NSLocalNetworkUsageDescription');
}
section('Clean build');
await inDirectory(flutterProject.rootPath, () async {
await flutter('clean');
});
section('Archive');
await inDirectory(flutterProject.rootPath, () async {
await flutter('build', options: <String>[
'xcarchive',
]);
});
checkDirectoryExists(path.join(
flutterProject.rootPath,
'build',
'ios',
'archive',
'Runner.xcarchive',
'Products',
));
});
return TaskResult.success(null);