-
Notifications
You must be signed in to change notification settings - Fork 29.4k
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listteam-iosOwned by iOS platform teamOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-iosTriaged by iOS platform teamTriaged by iOS platform team
Description
On #151500 testing Xcode 16 beta 3, tools test flutter_build_with_compilation_error_test
failed. The expected error is present, but is in the stdout and not stderr.
flutter/packages/flutter_tools/test/integration.shard/flutter_build_with_compilation_error_test.dart
Lines 68 to 70 in 43458fe
const ProcessResultMatcher( | |
exitCode: 1, | |
stderrPattern: "A value of type 'String' can't be assigned to a variable of type 'int'.", |
04:02 +26 ~4 -1: test/integration.shard/flutter_build_with_compilation_error_test.dart: flutter build ios shows dart compilation error in non-verbose [E]
Expected: a process with exit code 1 and stderr: "A value of type 'String' can't be assigned to a variable of type 'int'."
Actual: <Instance of 'ProcessResult'>
Which: Actual stdout:
Downloading ios tools... 1,634ms
Downloading ios-profile tools... 1,184ms
Downloading ios-release tools... 961ms
Warning: Building for device with codesigning disabled. You will have to manually codesign before deploying to device.
Building com.example.hello for device (ios-release)...
Running Xcode build...
Xcode build done. 3.2s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
Writing result bundle at path:
/Volumes/Work/s/w/ir/x/t/flutter_tools.OlXjrA/flutter_ios_build_temp_dirjszsu2/temporary_xcresult_bundle
error: lib/main.dart:1:9: Error: A value of type 'String' can't be assigned to a variable of type 'int'.
int x = 'String';
^
package:hello/main.dart: Error: No 'main' method found.
Try adding a method named 'main' to your program.
Target kernel_snapshot_program failed: Exception
Failed to package /Volumes/Work/s/w/ir/x/t/flutter_build_compilation_error_test.3IDLED/hello.
note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'Runner' from project 'Runner')
note: Run script build phase 'Run Script' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'Runner' from project 'Runner')
note: Run script build phase 'Thin Binary' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'Runner' from project 'Runner')
Actual stderr:
Encountered error while building for device.
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listteam-iosOwned by iOS platform teamOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-iosTriaged by iOS platform teamTriaged by iOS platform team
Type
Projects
Status
Done