[GH-ISSUE #5690] [Bug] Cannot run MacOS Darwin - with AF Desktop Clean + Rebuild #2537

Closed
opened 2026-03-23 21:23:12 +00:00 by mirror · 5 comments
Owner

Originally created by @md-weber on GitHub (Jul 5, 2024).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/5690

Bug Description

I try to contribute to the project but sadly it fails always to start the app locally on my device.

ld: warning: Could not find or use auto-linked framework 'CoreAudioTypes': framework 'CoreAudioTypes' not found
Undefined symbols for architecture x86_64:
  "_link_me_please", referenced from:
      static appflowy_backend.AppFlowyBackendPlugin.dummyMethodToEnforceBundling() -> () in appflowy_backend[4](AppFlowyBackendPlugin.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Flutter Assemble' from project 'Runner')

Maybe related during the install script this happens:

[SEVERE] freezed on lib/generated/codegen_loader.g.dart:

This builder requires Dart inputs without syntax errors.
However, package:appflowy/generated/codegen_loader.g.dart (or an existing part) contains the following errors.
codegen_loader.g.dart:11856:23: Expected an identifier.
codegen_loader.g.dart:11928:20: Expected an identifier.
codegen_loader.g.dart:11934:20: Expected an identifier.
And 2 more...

Try fixing the errors and re-running the build.

How to Reproduce

Follow the contrubion documentation for MacOS

  • Fork the project
  • Execute the macos install script install everything fresh Rust etc.
  • Run the debug AF-desktop: clean and rebuild

Expected Behavior

Build should be successful and the App should start up

Operating System

MacOS M2

AppFlowy Version(s)

Main Branch

Screenshots

No response

Additional Context

Context and Additional information:
https://discord.com/channels/903549834160635914/1246420748298485780/1246906058165714944

Issue that seems to be related:
https://github.com/AppFlowy-IO/AppFlowy/issues/4049

Originally created by @md-weber on GitHub (Jul 5, 2024). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/5690 ### Bug Description I try to contribute to the project but sadly it fails always to start the app locally on my device. ``` ld: warning: Could not find or use auto-linked framework 'CoreAudioTypes': framework 'CoreAudioTypes' not found Undefined symbols for architecture x86_64: "_link_me_please", referenced from: static appflowy_backend.AppFlowyBackendPlugin.dummyMethodToEnforceBundling() -> () in appflowy_backend[4](AppFlowyBackendPlugin.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Flutter Assemble' from project 'Runner') ``` Maybe related during the install script this happens: ``` [SEVERE] freezed on lib/generated/codegen_loader.g.dart: This builder requires Dart inputs without syntax errors. However, package:appflowy/generated/codegen_loader.g.dart (or an existing part) contains the following errors. codegen_loader.g.dart:11856:23: Expected an identifier. codegen_loader.g.dart:11928:20: Expected an identifier. codegen_loader.g.dart:11934:20: Expected an identifier. And 2 more... Try fixing the errors and re-running the build. ``` ### How to Reproduce Follow the contrubion documentation for MacOS - Fork the project - Execute the macos install script install everything fresh Rust etc. - Run the debug AF-desktop: clean and rebuild ### Expected Behavior Build should be successful and the App should start up ### Operating System MacOS M2 ### AppFlowy Version(s) Main Branch ### Screenshots _No response_ ### Additional Context Context and Additional information: https://discord.com/channels/903549834160635914/1246420748298485780/1246906058165714944 Issue that seems to be related: https://github.com/AppFlowy-IO/AppFlowy/issues/4049
mirror 2026-03-23 21:23:12 +00:00
Author
Owner

@allanGoldZhiKang commented on GitHub (Jul 6, 2024):

same problem,do you have any resolution?

<!-- gh-comment-id:2211725711 --> @allanGoldZhiKang commented on GitHub (Jul 6, 2024): same problem,do you have any resolution?
Author
Owner

@allanGoldZhiKang commented on GitHub (Jul 6, 2024):

@LucasXu0 Please help us, Thank you

<!-- gh-comment-id:2211725939 --> @allanGoldZhiKang commented on GitHub (Jul 6, 2024): @LucasXu0 Please help us, Thank you
Author
Owner

@md-weber commented on GitHub (Jul 10, 2024):

same problem,do you have any resolution?

Did not found anything so far, it feels like a dependency is off. Not sure why and I tried to get trough the logs but no luck so far. Keep you posted if I find a way to run it.

<!-- gh-comment-id:2221659993 --> @md-weber commented on GitHub (Jul 10, 2024): > same problem,do you have any resolution? Did not found anything so far, it feels like a dependency is off. Not sure why and I tried to get trough the logs but no luck so far. Keep you posted if I find a way to run it.
Author
Owner

@md-weber commented on GitHub (Aug 13, 2024):

I found the following issue, and it seems like he uses a different command for the cargo make:

cargo make --profile production-mac-arm64 appflowy

https://github.com/AppFlowy-IO/AppFlowy/issues/5884#issue-2449912762

Ill investigate if that helps and makes it possible to work on AppFlowy again.

<!-- gh-comment-id:2286191202 --> @md-weber commented on GitHub (Aug 13, 2024): I found the following issue, and it seems like he uses a different command for the cargo make: `cargo make --profile production-mac-arm64 appflowy` https://github.com/AppFlowy-IO/AppFlowy/issues/5884#issue-2449912762 Ill investigate if that helps and makes it possible to work on AppFlowy again.
Author
Owner

@notandyvee commented on GitHub (Aug 16, 2024):

@md-weber the cargo command is for building release. Clean rebuild runs it for debug mode within VS code. Or at least in meant to. Could you run flutter doctor and post the output? Your error sounds flutter related.

<!-- gh-comment-id:2292664127 --> @notandyvee commented on GitHub (Aug 16, 2024): @md-weber the cargo command is for building release. Clean rebuild runs it for debug mode within VS code. Or at least in meant to. Could you run `flutter doctor` and post the output? Your error sounds flutter related.
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#2537
No description provided.