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

Mac build rejected due for requesting for Accessibility Access for keystrokes

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

  1. kabur

    kabur

    Joined:
    Jan 23, 2016
    Posts:
    12
    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:
    201
    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:
    12
    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:
    156
    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:
    34
    Should this be alright with 2017.4 LTS?
     
  7. Klaus-Eiperle

    Klaus-Eiperle

    Joined:
    Mar 10, 2012
    Posts:
    41
    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:
    11
    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:
    41
    you have to upgrade your project to the latest Unity3D version. It is not possible with Unity 5.6.7f1.
     
  14. swredcam

    swredcam

    Joined:
    Apr 16, 2017
    Posts:
    118
    Am I understanding this correctly? My app store build was rejected for this issue. I'm still running Unity 2017.4 as everytime I update anything in Unity, things break. There is no way to fix this issue other than updating Unity by multiple versions? I'm really scratching my head as to why I have a paid version of Unity.
     
  15. Klaus-Eiperle

    Klaus-Eiperle

    Joined:
    Mar 10, 2012
    Posts:
    41
    2019.2.21f1 will work for you. I would not upgrade to a newer version because of the render engine (In case you use custom shaders).
     
  16. swredcam

    swredcam

    Joined:
    Apr 16, 2017
    Posts:
    118
    I thought 2018.4 was OK? I am halfway through upgrading to that!
     
  17. swredcam

    swredcam

    Joined:
    Apr 16, 2017
    Posts:
    118
    Just to confirm, 2018.4, the LTS version, cleared up this issue for me.
     
  18. Shubham_Zed

    Shubham_Zed

    Joined:
    Jul 12, 2019
    Posts:
    3
    Hi there,
    I am also having the same problem with Unity 5.6.1.
    I have signed the libraries too (libmono.0.dylib and libMonoPosixHelper.dylib).
    But the build still got rejected, not sure why. Anyone here to help?

    Also, does anyone know a working link to sign the mac app? Just in case I miss something.

    NOTE: Not in a position to update my project to a newer version since the project is quite large and it would take days to do so.
     
unityunity