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
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