Skip to content

error while building a legacy version #2

@thelumii

Description

@thelumii

so i got a 2009 imac with mac os high sierra, and i was trying to build the legacy version and i got this error:
main.swift:13:36: error: use of unresolved identifier 'CGPreflightPostEventAccess'
return AXIsProcessTrusted() && CGPreflightPostEventAccess()
^~~~~~~~~~~~~~~~~~~~~~~~~~
main.swift:22:9: error: use of unresolved identifier 'CGPreflightPostEventAccess'
if !CGPreflightPostEventAccess() {
^~~~~~~~~~~~~~~~~~~~~~~~~~
main.swift:23:13: error: use of unresolved identifier 'CGRequestPostEventAccess'
_ = CGRequestPostEventAccess()
^~~~~~~~~~~~~~~~~~~~~~~~
any idea why? if it's because of the os, idk what to do then

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions