[GH-ISSUE #4049] [Bug] run on macOS failed #1828

Closed
opened 2026-03-23 21:17:33 +00:00 by mirror · 1 comment
Owner

Originally created by @yava555 on GitHub (Nov 30, 2023).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/4049

Bug Description

AF-desktop: Clean + Rebuild All

Launching lib/main.dart on macOS in debug mode...
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, id:00006000-001279543A62801E }
{ platform:macOS, arch:x86_64, id:00006000-001279543A62801E }
2023-11-30 11:10:21.311 xcodebuild[2615:2535156] [MT] DVTAssertions: Warning in /System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot11/ActiveBuildRoot/Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-22269/IDEFoundation/Provisioning/Capabilities Infrastructure/IDECapabilityQuerySelection.swift:103
Details:  createItemModels creation requirements should not create capability item model for a capability item model that already exists.
Function: createItemModels(for:itemModelSource:)
Thread:   <_NSMainThread: 0x154609ed0>{number = 1, name = main}
Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.
2023-11-30 11:10:21.311 xcodebuild[2615:2535156] [MT] DVTAssertions: Warning in /System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot11/ActiveBuildRoot/Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-22269/IDEFoundation/Provisioning/Capabilities Infrastructure/IDECapabilityQuerySelection.swift:103
Details:  createItemModels creation requirements should not create capability item model for a capability item model that already exists.
Function: createItemModels(for:itemModelSource:)
Thread:   <_NSMainThread: 0x154609ed0>{number = 1, name = main}
Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.
ld: warning: Could not find or use auto-linked framework 'CoreAudioTypes': framework 'CoreAudioTypes' not found
ld: Undefined symbols:
  _link_me_please, referenced from:
      static appflowy_backend.AppFlowyBackendPlugin.dummyMethodToEnforceBundling() -> () in appflowy_backend[4](AppFlowyBackendPlugin.o)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **

Exception: Build process failed

How to Reproduce

flutter doctor -v

[✓] Flutter (Channel stable, 3.13.9, on macOS 14.1 23B74 darwin-arm64, locale zh-Hans-CN)
    • Flutter version 3.13.9 on channel stable at /Users/yava/myspace/Tools/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision d211f42860 (5 weeks ago), 2023-10-25 13:42:25 -0700
    • Engine revision 0545f8705d
    • Dart version 3.1.5
    • DevTools version 2.25.0
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/yava/Library/Android/sdk
    • Platform android-34, build-tools 33.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A507
    • CocoaPods version 1.12.0

1)get latest code
2) sh ./frontend/scripts/install_dev_env/install_macos.sh
3) click AF-desktop: Clean + Rebuild All

Expected Behavior

run debug on macOS

Operating System

macOS 14.1

AppFlowy Version(s)

0.3.8

Screenshots

directlhy run on Xcode:

1

Additional Context

No response

Originally created by @yava555 on GitHub (Nov 30, 2023). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/4049 ### Bug Description **AF-desktop: Clean + Rebuild All** ``` Launching lib/main.dart on macOS in debug mode... --- xcodebuild: WARNING: Using the first of multiple matching destinations: { platform:macOS, arch:arm64, id:00006000-001279543A62801E } { platform:macOS, arch:x86_64, id:00006000-001279543A62801E } 2023-11-30 11:10:21.311 xcodebuild[2615:2535156] [MT] DVTAssertions: Warning in /System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot11/ActiveBuildRoot/Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-22269/IDEFoundation/Provisioning/Capabilities Infrastructure/IDECapabilityQuerySelection.swift:103 Details: createItemModels creation requirements should not create capability item model for a capability item model that already exists. Function: createItemModels(for:itemModelSource:) Thread: <_NSMainThread: 0x154609ed0>{number = 1, name = main} Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. 2023-11-30 11:10:21.311 xcodebuild[2615:2535156] [MT] DVTAssertions: Warning in /System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot11/ActiveBuildRoot/Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-22269/IDEFoundation/Provisioning/Capabilities Infrastructure/IDECapabilityQuerySelection.swift:103 ``` ``` Details: createItemModels creation requirements should not create capability item model for a capability item model that already exists. Function: createItemModels(for:itemModelSource:) Thread: <_NSMainThread: 0x154609ed0>{number = 1, name = main} Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. ld: warning: Could not find or use auto-linked framework 'CoreAudioTypes': framework 'CoreAudioTypes' not found ld: Undefined symbols: _link_me_please, referenced from: static appflowy_backend.AppFlowyBackendPlugin.dummyMethodToEnforceBundling() -> () in appflowy_backend[4](AppFlowyBackendPlugin.o) clang: error: linker command failed with exit code 1 (use -v to see invocation) ** BUILD FAILED ** Exception: Build process failed ``` ### How to Reproduce flutter doctor -v ``` [✓] Flutter (Channel stable, 3.13.9, on macOS 14.1 23B74 darwin-arm64, locale zh-Hans-CN) • Flutter version 3.13.9 on channel stable at /Users/yava/myspace/Tools/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision d211f42860 (5 weeks ago), 2023-10-25 13:42:25 -0700 • Engine revision 0545f8705d • Dart version 3.1.5 • DevTools version 2.25.0 • Pub download mirror https://pub.flutter-io.cn • Flutter download mirror https://storage.flutter-io.cn [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0) • Android SDK at /Users/yava/Library/Android/sdk • Platform android-34, build-tools 33.0.0 • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 15.0.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 15A507 • CocoaPods version 1.12.0 ``` 1)get latest code 2) sh ./frontend/scripts/install_dev_env/install_macos.sh 3) click **AF-desktop: Clean + Rebuild All** ### Expected Behavior run debug on macOS ### Operating System macOS 14.1 ### AppFlowy Version(s) 0.3.8 ### Screenshots directlhy run on Xcode: ![1](https://github.com/AppFlowy-IO/AppFlowy/assets/32594/ec4025c2-c56f-4768-97b8-09bfffc0915d) ### Additional Context _No response_
Author
Owner

@yava555 commented on GitHub (Nov 30, 2023):

update to the latest code, resolved this issue

<!-- gh-comment-id:1834673099 --> @yava555 commented on GitHub (Nov 30, 2023): update to the latest code, resolved this issue
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#1828
No description provided.