Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

fix: fail to execute profile task in VSCode

Lucas.Xu98f8a3a35c78
diff --git a/frontend/.vscode/launch.json b/frontend/.vscode/launch.json
index 315e208317..036b5ab35c 100644
--- a/frontend/.vscode/launch.json
+++ b/frontend/.vscode/launch.json
@@ -62,8 +62,10 @@
{
"name": "AF: app_flowy (profile mode)",
"request": "launch",
+ "program": "./lib/main.dart",
"type": "dart",
- "flutterMode": "profile"
+ "flutterMode": "profile",
+ "cwd": "${workspaceRoot}/app_flowy"
},
]
}
\ No newline at end of file
diff --git a/frontend/Makefile.toml b/frontend/Makefile.toml
index 42708d7c32..8418c30141 100644
--- a/frontend/Makefile.toml
+++ b/frontend/Makefile.toml
@@ -52,6 +52,7 @@ RUST_COMPILE_TARGET = "aarch64-apple-darwin"
BUILD_FLAG = "debug"
FLUTTER_OUTPUT_DIR = "Debug"
PRODUCT_EXT = "app"
+BUILD_ARCHS = "arm64"
[env.development-mac-x86_64]
RUST_LOG = "info"
@@ -60,6 +61,7 @@ RUST_COMPILE_TARGET = "x86_64-apple-darwin"
BUILD_FLAG = "debug"
FLUTTER_OUTPUT_DIR = "Debug"
PRODUCT_EXT = "app"
+BUILD_ARCHS = "x86_64"
[env.production-mac-arm64]
BUILD_FLAG = "release"
diff --git a/frontend/app_flowy/macos/Runner.xcodeproj/project.pbxproj b/frontend/app_flowy/macos/Runner.xcodeproj/project.pbxproj
index 61cb05b101..219b81efe0 100644
--- a/frontend/app_flowy/macos/Runner.xcodeproj/project.pbxproj
+++ b/frontend/app_flowy/macos/Runner.xcodeproj/project.pbxproj
@@ -427,6 +427,7 @@
"$(inherited)",
"@executable_path/../Frameworks",
);
+ ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.appflowy.macos;
PRODUCT_NAME = AppFlowy;
PROVISIONING_PROFILE_SPECIFIER = "";