bitsdojo_window icon indicating copy to clipboard operation
bitsdojo_window copied to clipboard

MacOS plugin broken after upgrade to Flutter 2.8

Open pulyaevskiy opened this issue 4 years ago • 13 comments

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

pulyaevskiy avatar Dec 10 '21 01:12 pulyaevskiy

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

Yesterday17 avatar Dec 12 '21 10:12 Yesterday17

Yes it does. Thank you.

jonny7737 avatar Dec 14 '21 15:12 jonny7737

great!

SteveCruise avatar Dec 16 '21 14:12 SteveCruise

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

Thanks, works for me.

For other macOS newbies: image

mutoe avatar Dec 18 '21 11:12 mutoe

Thank you.

luggin avatar Dec 23 '21 06:12 luggin

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

It worked fine. Thank you

namhi avatar Dec 23 '21 09:12 namhi

Wonderful! Thanks!

wxxedu avatar Jan 27 '22 10:01 wxxedu

👍

ijinfeng avatar Feb 15 '22 07:02 ijinfeng

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

Eric0x avatar Mar 10 '22 07:03 Eric0x

libc++

how to do this in vscode? Thanks

ingangi avatar Apr 19 '22 03:04 ingangi

@ingangi you'll have to do it in xcode

bluejeans117 avatar Apr 19 '22 04:04 bluejeans117

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

ingangi avatar Apr 19 '22 05:04 ingangi

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

appinteractive avatar Aug 11 '22 09:08 appinteractive