运行 qemu 模拟器时 libgthread 不是最新的

libgthread not up-to-date when running qemu emulator

我第一次尝试 运行 Pebble 模拟器与我的一个 Pebble 应用程序,我收到以下消息:

$ pebble install --emulator aplite
Couldn't launch emulator:
dyld: Library not loaded: /usr/local/lib/libgthread-2.0.0.dylib
Referenced from: /Users/sarbogast/pebble-dev/PebbleSDK-3.3/Pebble/common/qemu/qemu-system-arm_Darwin_x86_64
Reason: Incompatible library version: qemu-system-arm_Darwin_x86_64 requires version 4401.0.0 or later, but libgthread-2.0.0.dylib provides version 4201.0.0

看来libgthread太老了。我该如何升级?

这个命令解决了我的问题:

brew update && brew upgrade glib