Sorry after above solution this will not work inside unity!
For me it resolved after upgrading macOS and Xcode to latest version...
Topic:
Graphics & Games
SubTopic:
GameKit
Tags: