AppFlowy-IO / AppFlowy

Bring projects, wikis, and teams together with AI. AppFlowy is an AI collaborative workspace where you achieve more without losing control of your data. The best open source alternative to Notion.
https://www.appflowy.io
GNU Affero General Public License v3.0
50.63k stars 3.36k forks source link

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

Open md-weber opened 1 week ago

md-weber commented 1 week ago

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

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

allanGoldZhiKang commented 1 week ago

same problem,do you have any resolution?

allanGoldZhiKang commented 1 week ago

@LucasXu0 Please help us, Thank you

md-weber commented 1 week ago

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.