Mac Game Rejected for Accessibility Access for keystrokes from any application

Hi, my recent submission of mac game has been rejected. I’ve tried submitted different games with unity 2018.3.12f1 all of them rejected due to following message.

Guideline 2.4.5(v) - Performance

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

Next Steps

Please update the binary to remove such requests.

Please see attached screenshot for details.
"147327-attachment-2179695786759878467image10-11-19at950am.jpg

Please check attached screenshot for more details. Can anyone help me to remove this keystroke Accessibility Access permission from my Mac game developed by unity?

Hi, my last game submission was accepted after I replaced signature for all .dylib files present in Frameworks folder. Here is my SignGame.sh shell script. I’m not sure if this will solve this issue by for me it worked.

#!/bin/bash


AppName="Hill Town"
DeveloperName="Nasir Ali"



apppath="./$AppName.app"
echo "Getting Read Permissions App...$apppath"

chmod -R a+xr "$apppath"

echo "Starting Signing..."

codesign -f --deep -s "3rd Party Mac Developer Application: $DeveloperName" --entitlements "./entitleFile.entitlements" "$apppath/Contents/Frameworks/libcrypto.dylib"
codesign -f --deep -s "3rd Party Mac Developer Application: $DeveloperName" --entitlements "./entitleFile.entitlements" "$apppath/Contents/Frameworks/libssl.dylib"
codesign -f --deep -s "3rd Party Mac Developer Application: $DeveloperName" --entitlements "./entitleFile.entitlements" "$apppath/Contents/Frameworks/UnityPlayer.dylib"
codesign -f --deep -s "3rd Party Mac Developer Application: $DeveloperName" --entitlements "./entitleFile.entitlements" "$apppath/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib"
codesign -f --deep -s "3rd Party Mac Developer Application: $DeveloperName" --entitlements "./entitleFile.entitlements" "$apppath/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libMonoPosixHelper.dylib"
codesign -f --deep -s "3rd Party Mac Developer Application: $DeveloperName" --entitlements "./entitleFile.entitlements" "$apppath/"

echo "Done Signing..."

echo "Packaging game..."
productbuild --component "$apppath" "/Applications" --sign "3rd Party Mac Developer Installer: $DeveloperName" "$AppName.pkg"