[GH-ISSUE #8387] [Bug] Build fails for MacOS #3790

Closed
opened 2026-03-23 21:33:14 +00:00 by mirror · 2 comments
Owner

Originally created by @mbertogliati on GitHub (Dec 11, 2025).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/8387

Bug Description

After running all the scripts of automatic code generation and running the app, I get these errors:

Launching lib/main.dart on macOS in debug mode...
Building macOS application...
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, id:00006040-0012084602A0801C, name:My Mac }
{ platform:macOS, arch:x86_64, id:00006040-0012084602A0801C, name:My Mac }
lib/workspace/presentation/settings/pages/account/password/change_password.dart:144:9: Error: No named parameter with the name 'autofillHints'.
        autofillHints: const [AutofillHints.password],
        ^^^^^^^^^^^^^
packages/appflowy_ui/lib/src/component/textfield/textfield.dart:19:9: Context: Found this candidate, but the arguments don't match.
  const AFTextField({
        ^^^^^^^^^^^
lib/workspace/presentation/settings/pages/account/password/change_password.dart:177:9: Error: No named parameter with the name 'autofillHints'.
        autofillHints: const [AutofillHints.password],
        ^^^^^^^^^^^^^
packages/appflowy_ui/lib/src/component/textfield/textfield.dart:19:9: Context: Found this candidate, but the arguments don't match.
  const AFTextField({
        ^^^^^^^^^^^
lib/workspace/presentation/settings/pages/account/password/change_password.dart:210:9: Error: No named parameter with the name 'autofillHints'.
        autofillHints: const [AutofillHints.password],
        ^^^^^^^^^^^^^
packages/appflowy_ui/lib/src/component/textfield/textfield.dart:19:9: Context: Found this candidate, but the arguments don't match.
  const AFTextField({
        ^^^^^^^^^^^
lib/workspace/presentation/settings/pages/account/password/setup_password.dart:139:9: Error: No named parameter with the name 'autofillHints'.
        autofillHints: const [AutofillHints.password],
        ^^^^^^^^^^^^^
packages/appflowy_ui/lib/src/component/textfield/textfield.dart:19:9: Context: Found this candidate, but the arguments don't match.
  const AFTextField({
        ^^^^^^^^^^^
lib/workspace/presentation/settings/pages/account/password/setup_password.dart:172:9: Error: No named parameter with the name 'autofillHints'.
        autofillHints: const [AutofillHints.password],
        ^^^^^^^^^^^^^
packages/appflowy_ui/lib/src/component/textfield/textfield.dart:19:9: Context: Found this candidate, but the arguments don't match.
  const AFTextField({
        ^^^^^^^^^^^
lib/user/presentation/screens/sign_in_screen/widgets/continue_with/continue_with_password_page.dart:136:9: Error: No named parameter with the name 'autofillHints'.
        autofillHints: const [AutofillHints.password],
        ^^^^^^^^^^^^^
packages/appflowy_ui/lib/src/component/textfield/textfield.dart:19:9: Context: Found this candidate, but the arguments don't match.
  const AFTextField({
        ^^^^^^^^^^^
lib/user/presentation/screens/sign_in_screen/widgets/continue_with/set_new_password.dart:148:11: Error: No named parameter with the name 'autofillHints'.
          autofillHints: const [AutofillHints.password],
          ^^^^^^^^^^^^^
packages/appflowy_ui/lib/src/component/textfield/textfield.dart:19:9: Context: Found this candidate, but the arguments don't match.
  const AFTextField({
        ^^^^^^^^^^^
lib/user/presentation/screens/sign_in_screen/widgets/continue_with/set_new_password.dart:164:11: Error: No named parameter with the name 'autofillHints'.
          autofillHints: const [AutofillHints.password],
          ^^^^^^^^^^^^^
packages/appflowy_ui/lib/src/component/textfield/textfield.dart:19:9: Context: Found this candidate, but the arguments don't match.
  const AFTextField({
        ^^^^^^^^^^^
Target kernel_snapshot_program failed: Exception

Command PhaseScriptExecution failed with a nonzero exit code
** BUILD FAILED **

Error: Build process failed

How to Reproduce

Build with MacOS (M4)

Expected Behavior

It should start the app

Operating System

MacOS

AppFlowy Version(s)

main branch

Screenshots

No response

Additional Context

Adding this.autofillHints in constructor frontend/appflowy_flutter/packages/appflowy_ui/lib/src/component/textfield/textfield.dart seems to solve the issue

Originally created by @mbertogliati on GitHub (Dec 11, 2025). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/8387 ### Bug Description After running all the scripts of automatic code generation and running the app, I get these errors: ``` Launching lib/main.dart on macOS in debug mode... Building macOS application... --- xcodebuild: WARNING: Using the first of multiple matching destinations: { platform:macOS, arch:arm64, id:00006040-0012084602A0801C, name:My Mac } { platform:macOS, arch:x86_64, id:00006040-0012084602A0801C, name:My Mac } lib/workspace/presentation/settings/pages/account/password/change_password.dart:144:9: Error: No named parameter with the name 'autofillHints'. autofillHints: const [AutofillHints.password], ^^^^^^^^^^^^^ packages/appflowy_ui/lib/src/component/textfield/textfield.dart:19:9: Context: Found this candidate, but the arguments don't match. const AFTextField({ ^^^^^^^^^^^ lib/workspace/presentation/settings/pages/account/password/change_password.dart:177:9: Error: No named parameter with the name 'autofillHints'. autofillHints: const [AutofillHints.password], ^^^^^^^^^^^^^ packages/appflowy_ui/lib/src/component/textfield/textfield.dart:19:9: Context: Found this candidate, but the arguments don't match. const AFTextField({ ^^^^^^^^^^^ lib/workspace/presentation/settings/pages/account/password/change_password.dart:210:9: Error: No named parameter with the name 'autofillHints'. autofillHints: const [AutofillHints.password], ^^^^^^^^^^^^^ packages/appflowy_ui/lib/src/component/textfield/textfield.dart:19:9: Context: Found this candidate, but the arguments don't match. const AFTextField({ ^^^^^^^^^^^ lib/workspace/presentation/settings/pages/account/password/setup_password.dart:139:9: Error: No named parameter with the name 'autofillHints'. autofillHints: const [AutofillHints.password], ^^^^^^^^^^^^^ packages/appflowy_ui/lib/src/component/textfield/textfield.dart:19:9: Context: Found this candidate, but the arguments don't match. const AFTextField({ ^^^^^^^^^^^ lib/workspace/presentation/settings/pages/account/password/setup_password.dart:172:9: Error: No named parameter with the name 'autofillHints'. autofillHints: const [AutofillHints.password], ^^^^^^^^^^^^^ packages/appflowy_ui/lib/src/component/textfield/textfield.dart:19:9: Context: Found this candidate, but the arguments don't match. const AFTextField({ ^^^^^^^^^^^ lib/user/presentation/screens/sign_in_screen/widgets/continue_with/continue_with_password_page.dart:136:9: Error: No named parameter with the name 'autofillHints'. autofillHints: const [AutofillHints.password], ^^^^^^^^^^^^^ packages/appflowy_ui/lib/src/component/textfield/textfield.dart:19:9: Context: Found this candidate, but the arguments don't match. const AFTextField({ ^^^^^^^^^^^ lib/user/presentation/screens/sign_in_screen/widgets/continue_with/set_new_password.dart:148:11: Error: No named parameter with the name 'autofillHints'. autofillHints: const [AutofillHints.password], ^^^^^^^^^^^^^ packages/appflowy_ui/lib/src/component/textfield/textfield.dart:19:9: Context: Found this candidate, but the arguments don't match. const AFTextField({ ^^^^^^^^^^^ lib/user/presentation/screens/sign_in_screen/widgets/continue_with/set_new_password.dart:164:11: Error: No named parameter with the name 'autofillHints'. autofillHints: const [AutofillHints.password], ^^^^^^^^^^^^^ packages/appflowy_ui/lib/src/component/textfield/textfield.dart:19:9: Context: Found this candidate, but the arguments don't match. const AFTextField({ ^^^^^^^^^^^ Target kernel_snapshot_program failed: Exception Command PhaseScriptExecution failed with a nonzero exit code ** BUILD FAILED ** Error: Build process failed ``` ### How to Reproduce Build with MacOS (M4) ### Expected Behavior It should start the app ### Operating System MacOS ### AppFlowy Version(s) main branch ### Screenshots _No response_ ### Additional Context Adding `this.autofillHints` in constructor `frontend/appflowy_flutter/packages/appflowy_ui/lib/src/component/textfield/textfield.dart` seems to solve the issue
Author
Owner

@LucasXu0 commented on GitHub (Dec 11, 2025):

Please use Flutter 3.27.4.

<!-- gh-comment-id:3640037631 --> @LucasXu0 commented on GitHub (Dec 11, 2025): Please use Flutter 3.27.4.
Author
Owner

@fractalshine commented on GitHub (Jan 3, 2026):

Almost the same error building on arm64 debian 12, Flutter 3.27.4 from git repo.

<!-- gh-comment-id:3706859530 --> @fractalshine commented on GitHub (Jan 3, 2026): Almost the same error building on arm64 debian 12, Flutter 3.27.4 from git repo.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#3790
No description provided.