Check Xcode build setting FULL_PRODUCT_NAME for the name of the built app during flutter run (#46928)

This commit is contained in:
Jenn Magder
2019-12-17 16:13:01 -08:00
committed by Flutter GitHub Bot
parent a15a81be21
commit e54e301d50
21 changed files with 186 additions and 95 deletions

View File

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

View File

@@ -402,7 +402,7 @@ class CompileTest {
watch.start();
await flutter('build', options: options);
watch.stop();
final String appPath = '$cwd/build/ios/Release-iphoneos/Runner.app/';
final String appPath = '$cwd/build/ios/Release-iphoneos/sample_flutter_app.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();