Skip to content

🐞 反馈问题:Use of undeclared identifier 'SMAppService' #79

@selfboot

Description

@selfboot

请先确认以下事项:

  • 已仔细阅读了 README
  • issues 页面搜索过问题(包括已关闭的 issue),但未能找到解决方法
  • Easydict 已升级到最新版本

问题描述

一些老机型只能升级到 MacOS 11 了,在这些机器编译的时候,会遇到 Use of undeclared identifier 'SMAppService' 错误。

image

看了下在 mac os 13才支持

In macOS 13 and later, use SMAppService to register and control LoginItems, LaunchAgents, and LaunchDaemons as helper executables for your app. When converting code from earlier versions of macOS, use an SMAppService object and select one of the following methods depending on the type of service your helper executable provides

重现步骤

mac os 11 编译

期望结果

能够支持更多的mac版本

解决方案(可选)

No response

设备信息 && 操作系统版本(可选)

11.7.6 (20G1231)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions