Skip to content
This repository was archived by the owner on Oct 12, 2025. It is now read-only.
This repository was archived by the owner on Oct 12, 2025. It is now read-only.

[Bug]: osx_arm64 killed since ASP: Security policy would not allow process #374

@widcardw

Description

@widcardw

请确保您已阅读以上注意事项,并勾选下方的确认框。

  • 我已经仔细阅读上述内容
  • 我已经使用 最新构建 测试过,问题依旧存在。
  • 我已经在 Issue Tracker 中找过我要提出的问题,没有找到相同问题的ISSUE。
  • 我已知晓并同意,此处仅用于汇报程序中存在的问题。若这个 Issue 是关于其他非程序本身问题,则我的 Issue 可能会被无条件自动关闭或/并锁定。(其它疑问请考虑加入TG群询问或在discussions中提问)

Lagrange项目

Core

所使用/依赖的Lagrange项目对应的commit

Not provided

运行环境

MacOS

运行架构

arm64

连接方式

None

重现步骤

  1. 首先需要有一台 M 系列芯片的 Mac,下载 release 页面中的 Lagrange.OneBot_osx-arm64_8.0.zip
  2. 解压后放置在一个没有特殊字符且没有空格的路径下
  3. 运行 chmod +x Lagrange.OneBot
  4. 运行 ./Lagrange.OneBot

期望的结果是什么?

开始运行并生成 appsettings.json 等配置文件,并出现扫码登录的提示等等。

No exist config file, create it now...
Please Edit the appsettings.json to set configs and press any key to continue

info: Microsoft.Hosting.Lifetime[0]
      Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
      Hosting environment: Production

实际的结果是什么?

程序直接退出,并且在终端中只显示 killed.

./arm64/Lagrange.OneBot
[1]    57889 killed     ./arm64/Lagrange.OneBot

简单的复现代码/链接(可选)

No response

日志记录(可选)

通过 Console.app 监听日志

/kernel (/System/Library/Extensions/ApplesystemPolicy.kext/Contents/MacOS/AppleSystemPolicy)
Subsystem:-- Category: <Missing Description> Hide
Activity ID: 0 Thread ID: 0x26211f PID:0
Volatile
2024-05-15 19:22:03.777285+0800
ASP: Security policy would not allow process: 57889,/Users/name/Documents/bot/Lagrange/arm64/Lagrange.OneBot

补充说明(可选)

下载 Lagrange.OneBot_osx-x64_8.0.zip 版本可以运行,并且开始生成配置文件,开始扫码登录。虽然说能用就行,但是避免不了还有人会踩到这个坑。

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions