bitsdojo / bitsdojo_window

A Flutter package that makes it easy to customize and work with your Flutter desktop app window.
http://www.youtube.com/watch?v=bee2AHQpGK4
MIT License
815 stars 229 forks source link

MacOS plugin broken after upgrade to Flutter 2.8 #119

Open pulyaevskiy opened 2 years ago

pulyaevskiy commented 2 years ago
Running pod install...
Building macOS application...
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:x86_64, id:D3B1C5E9-B0C8-5575-95B2-94FFFBE90C9D }
{ platform:macOS, name:Any Mac }
Undefined symbols for architecture x86_64:
  "___gxx_personality_v0", referenced from:
      getAppWindow() in bitsdojo_window_macos(bitsdojo_window.o)
      ____Z10moveWindowP8NSWindow_block_invoke in bitsdojo_window_macos(bitsdojo_window.o)
      setSize(NSWindow*, int, int) in bitsdojo_window_macos(bitsdojo_window.o)
      getScreenInfoForWindow(NSWindow*, _BDWScreenInfo*) in bitsdojo_window_macos(bitsdojo_window.o)
      setPositionForWindow(NSWindow*, _BDWOffset*) in bitsdojo_window_macos(bitsdojo_window.o)
      ____Z20setPositionForWindowP8NSWindowP10_BDWOffset_block_invoke in bitsdojo_window_macos(bitsdojo_window.o)
      setRectForWindow(NSWindow*, _BDWRect*) in bitsdojo_window_macos(bitsdojo_window.o)
      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in parallel
** BUILD FAILED **

Exception: Build process failed
Yesterday17 commented 2 years ago

Adding libc++ to Link Libraries in Build Phases fixes the error. image

jonny7737 commented 2 years ago

Yes it does. Thank you.

SteveCruise commented 2 years ago

great!

mutoe commented 2 years ago

Adding libc++ to Link Libraries in Build Phases fixes the error. image

Thanks, works for me.

For other macOS newbies: image

luggin commented 2 years ago

Thank you.

namhi commented 2 years ago

Adding libc++ to Link Libraries in Build Phases fixes the error. image

It worked fine. Thank you

wxxedu commented 2 years ago

Wonderful! Thanks!

ijinfeng commented 2 years ago

👍

Eric0x commented 2 years ago

Thanks ! ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️

ingangi commented 2 years ago

libc++

how to do this in vscode? Thanks

bluejeans117 commented 2 years ago

@ingangi you'll have to do it in xcode

ingangi commented 2 years ago

Thank you! It works! My first time to use xcode ^^

appinteractive commented 2 years ago

I did not need that on the M1 and a fresh Flutter 3.0.5 project. Just for reference.