Revert "Check Xcode build setting FULL_PRODUCT_NAME for the name of the built app during flutter run (#47266)" (#47568)

This reverts commit 648a5d8a1e.
This commit is contained in:
Jenn Magder
2019-12-20 17:45:16 -08:00
committed by GitHub
parent 88cd1135bf
commit 85e9be36bf
21 changed files with 95 additions and 194 deletions

View File

@@ -44,7 +44,7 @@ Future<void> main() async {
'build',
'ios',
'iphoneos',
'hello.app',
'Runner.app',
));
if (!exists(ephemeralReleaseHostApp)) {
@@ -84,7 +84,7 @@ Future<void> main() async {
'build',
'ios',
'iphoneos',
'hello.app',
'Runner.app',
));
if (!exists(ephemeralProfileHostApp)) {
@@ -123,7 +123,7 @@ Future<void> main() async {
'build',
'ios',
'iphonesimulator',
'hello.app',
'Runner.app',
));
if (!exists(ephemeralDebugHostApp)) {
@@ -178,7 +178,7 @@ Future<void> main() async {
'build',
'ios',
'iphoneos',
'hello.app',
'Runner.app',
)));
if (!ephemeralHostAppWithCocoaPodsBuilt) {
@@ -223,7 +223,7 @@ Future<void> main() async {
'build',
'ios',
'iphoneos',
'hello.app',
'Runner.app',
)));
if (!editableHostAppBuilt) {

View File

@@ -410,15 +410,7 @@ class CompileTest {
watch.start();
await flutter('build', options: options);
watch.stop();
final Directory appBuildDirectory = dir(path.join(cwd, 'build/ios/Release-iphoneos'));
final Directory appBundle = appBuildDirectory
.listSync()
.whereType<Directory>()
.singleWhere((Directory directory) => path.extension(directory.path) == '.app', orElse: () => null);
if (appBundle == null) {
throw 'Failed to find app bundle in ${appBuildDirectory.path}';
}
final String appPath = appBundle.path;
final String appPath = '$cwd/build/ios/Release-iphoneos/Runner.app/';
// IPAs are created manually, https://flutter.dev/ios-release/
await exec('tar', <String>['-zcf', 'build/app.ipa', appPath]);
releaseSizeInBytes = await file('$cwd/build/app.ipa').length();