Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

Mac build rejected due for requesting for Accessibility Access for keystrokes

Discussion in 'OSX' started by kabur, Oct 11, 2019.

  1. kabur

    kabur

    Joined:
    Jan 23, 2016
    Posts:
    10
    Our Mac build was rejected for the following reason.

    Guideline 2.4.5(v) - Performance

    We noticed the game is requesting for Accessibility Access for keystrokes from any application, which is not appropriate.

    This is new guideline introduced by the apple for compatibility with their new OS 10.15 (Catalina)

    We are not sure for where these API’s are being called as we are not calling this explicitly in our code. We are not sure whether the Unity itself adds this to the build.

    Does any one has faced similar issue?. Is there any workaround for disable this ?.

    Our game is built on Unity version 2018.2.11.
     
    Last edited: Oct 12, 2019
  2. andrews_unity

    andrews_unity

    Unity Technologies

    Joined:
    Dec 11, 2015
    Posts:
    150
    Sadly I don't think there is a way around this, we did fix this issue in 2018.4 LTS so if you could verify against that version that would be great.
     
  3. kabur

    kabur

    Joined:
    Jan 23, 2016
    Posts:
    10
    thanks. it worked
     
  4. Ankaman

    Ankaman

    Joined:
    Feb 14, 2014
    Posts:
    36
    doesnt work for 2019.2.1f
     
  5. skullthug

    skullthug

    Joined:
    Oct 16, 2011
    Posts:
    153
    Is there any possible workaround for this for pre 2018.4??
    Our macOS project is still in 5.6.4, and we're in the process of converting to 2018+ but nowhere near ready yet- and we have a critical bugfix to submit but are blocked because of this weird permission request.
     
  6. turdann

    turdann

    Joined:
    Dec 29, 2012
    Posts:
    33
    Should this be alright with 2017.4 LTS?
     
  7. Klaus-Eiperle

    Klaus-Eiperle

    Joined:
    Mar 10, 2012
    Posts:
    40
    We are stuck in version 5.6.6f2 and can not update our apps on Apple's AppStore. This error message also comes with a hardened runtime. Is there a solution?
     
  8. yangluoping

    yangluoping

    Joined:
    Aug 7, 2013
    Posts:
    1
    We use the 2018.4.5f1 version, still this problem, is there another solution? My MacOS version is 10.15 and the Xcode version is 11.1
     
  9. VigorousApathy

    VigorousApathy

    Joined:
    Dec 22, 2012
    Posts:
    10
    In the same boat with 2018.2.9f1, will see if the 2018.4 upgrade will resolve it.
     
  10. andykuvaev

    andykuvaev

    Joined:
    Jan 30, 2020
    Posts:
    2
    We use version Unity Player version 2019.2.3f1 (8e55c27a4621) and this problem is urgent.
    Does anyone have a solution?

    Answer from AppStore:
    ----------------------------------------------------------------------------

    Guideline 2.4.5(v) - Performance

    Your app requests admin access from the user during operation.

    Specifically, your app is asking access to keystrokes.

    Resources

    To resolve this issue, it would be appropriate to confirm that you are using:

    - NSEvent.addLocalMonitor
    rather than
    - CGEvent.TapCreate.

    In addition, it would be appropriate to remove IOHIDCheckAccess(kIOHIDRequestTypeListenEvent) for accessing the user’s keystroke under Privacy, as apps with this feature are not appropriate for the App Store.
    -----------------------------------------------------------------------------
     
  11. andykuvaev

    andykuvaev

    Joined:
    Jan 30, 2020
    Posts:
    2
    Maybe who knows the version where this problem is exactly solved?
     
  12. asmaloney

    asmaloney

    Joined:
    Jul 25, 2019
    Posts:
    12
    I just ran into this with a 5.6.7f1 based game and I don't see any solutions anywhere.

    Is there an entitlement or something we need to set?
     
  13. Klaus-Eiperle

    Klaus-Eiperle

    Joined:
    Mar 10, 2012
    Posts:
    40
    you have to upgrade your project to the latest Unity3D version. It is not possible with Unity 5.6.7f1.
     
unityunity