ActivityWatch / ActivityWatch/activitywatch

`dyld: Library not loaded: /usr/lib/swift/libswift_Concurrency.dylib` on v0.12.1 for macOS 11.6

未关闭
#801 13 条评论 7 个 reaction 已指派 0 人 在 GitHub 查看
platform: macos
主要语言
Python
星标
18.9k
派生
1k
平均合并
1 天 4 小时
30 天内合并 PR
28

描述

The following was posted in: https://github.com/ActivityWatch/activitywatch/issues/787#issuecomment-1260766761

---

Unfortunately, v0.12.1 didn't work for me.
There are no errors in the logs now:
```
➜ ~ cat ~/Library/Logs/activitywatch/aw-watcher-window/aw-watcher-window_2022-09-28T16-39-12.log
2022-09-28 16:39:12 [INFO ]: aw-watcher-window started (aw_watcher_window.main:62)
2022-09-28 16:39:13 [INFO ]: Using swift strategy, calling out to swift binary (aw_watcher_window.main:67)
2022-09-28 16:39:13 [INFO ]: Connection to aw-server established by aw-watcher-window (aw_client.client:429)
```

But it seems that the afk-watcher-window is not running as seen from the ps output
```
➜ ~ ps aux|grep ActivityWatch|grep -v grep
umar 1424 0.4 0.5 5205432 81832 ?? S 4:38PM 0:04.11 /Applications/ActivityWatch.app/Contents/MacOS/aw-qt
umar 1436 0.3 0.3 4492020 47588 ?? S 4:38PM 0:01.61 /Applications/ActivityWatch.app/Contents/MacOS/aw-watcher-afk
umar 1434 0.0 0.3 4376404 43864 ?? S 4:38PM 0:01.29 /Applications/ActivityWatch.app/Contents/MacOS/aw-server
```

Running it manually would give the following error:
```
➜ ~ /Applications/ActivityWatch.app/Contents/MacOS/aw-watcher-window
2022-09-28 16:44:17 [INFO ]: aw-watcher-window started (aw_watcher_window.main:62)
usage: A cross platform window watcher for Activitywatch.
Supported on: Linux (X11), macOS and Windows.
[-h] [--host HOST] [--port PORT] [--testing] [--exclude-title] [--verbose]
[--poll-time POLL_TIME] [--strategy {jxa,applescript,swift}]
usage: A cross platform window watcher for Activitywatch.
Supported on: Linux (X11), macOS and Windows.
[-h] [--host HOST] [--port PORT] [--testing] [--exclude-title] [--verbose]
[--poll-time POLL_TIME] [--strategy {jxa,applescript,swift}]
A cross platform window watcher for Activitywatch.
Supported on: Linux (X11), macOS and Windows.: error: unrecognized arguments: -B -S -E -s -c from multiprocessing.resource_tracker import main;main(5)
A cross platform window watcher for Activitywatch.
Supported on: Linux (X11), macOS and Windows.: error: unrecognized arguments: --multiprocessing-fork tracker_fd=6 pipe_handle=8
2022-09-28 16:44:18 [INFO ]: Using swift strategy, calling out to swift binary (aw_watcher_window.main:67)
dyld: Library not loaded: /usr/lib/swift/libswift_Concurrency.dylib
Referenced from: /Applications/ActivityWatch.app/Contents/MacOS/aw_watcher_window/aw-watcher-window-macos
Reason: image not found
2022-09-28 16:44:19 [INFO ]: Connection to aw-server established by aw-watcher-window (aw_client.client:429)
```

Changing the method to jxa also doesn't work with the following logs
```
Exception: jxa error: Error: Error: An error occurred.
2022-09-28 16:49:36 [ERROR]: Exception thrown while trying to get active window (aw_watcher_window.main:110)
Traceback (most recent call last):
File "aw_watcher_window/main.py", line 107, in heartbeat_loop
File "aw_watcher_window/lib.py", line 55, in get_current_window
File "aw_watcher_window/lib.py", line 27, in get_current_window_macos
File "aw_watcher_window/macos_jxa.py", line 64, in getInfo
```

I'm on macOS Big Sur (v11.6.1)

Any help is appreciated! Thanks :)

Edit: I also get an error pop-up, that I hadn't noticed before, everytime activitywatch opens up. There's no error in the details. But it's consistently crashing

image

_Originally posted by @Gleek in https://github.com/ActivityWatch/activitywatch/issues/787#issuecomment-1260766761_

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。