You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Game Controller Capability Missing In Xcode for VisionPro

Hello.


We're porting a game to VisinoOS. After submitting it for review it was rejected because it did not mention that the game is using a bluetooth controller. Not a problem, we wanted to follow the instruction in order to comply with this requirement and surprise, we couldn't follow the instructions because we didn't find the Game Controller in the capability list.


This is what we have:


And this is what it should look like:



Can we add them manually or somebody has any idea how can we do this? They were also talking about a dictionary and to include visionOS in that dictionary but we couldn't find any with the name


GCRequiresControllerUserInteraction


This is their reply but in order for this to work we have to configure Game Controller capability and it does not exists:

Please configure the GCRequiresControllerUserInteraction key to include visionOS and set the value to YES.
If you need technical support, your question would be best addressed by Developer Technical Support, who can provide discrete code-level assistance.
Alternatively, learn how to configure the GCRequiresControllerUserInteraction property list key, or ask fellow developers and Apple engineers a question in the Apple Developer Forums.

Posted on Feb 22, 2024 11:13 PM

Reply

Similar questions

2 replies

Feb 29, 2024 12:48 PM in response to RusuStefan1

Not sure if this is current but Configuring game controllers | Apple Developer Documentation mentions


The Game Controllers capability is only available to games that target iOS, iPadOS, and tvOS.


Game Controllers also doesn't show up for me when I select Apple Vision Pro as my target. If I select Apple Vision Pro (designed for iPad), it works just fine.


However, there should be a workaround by manipulating the .plist file directly; they even mention it in Support game controllers in your app - Discover - Apple Developer:


If you are building your app using an older version of Xcode, you can indicate controller support by editing the info.plist for your app. Set the GCSupportsControllerUserInteraction key to true, then indicate each of the controller profiles your app supports.


Now, importantly, besides the GCRequiresControllerUserInteraction property, you'll need to add two more properties. The GCRequiresControllerUserInteraction | Apple Developer Documentation page says:


Xcode sets the value of GCSupportsControllerUserInteraction to YES and includes an entry in the GCSupportedGameControllers dictionary with ProfileName set to ExtendedGamepad.


You'll need to perform those steps manually. For instructions on how to edit .plist files in Xcode, see https://help.apple.com/xcode/mac/current/#/dev3f399a2a6.


This is what this would look like at the end:



Note that GCSupportsControllerUserInteraction transforms to Supports Controller User Interactions and GCSupportedGameControllers transforms to Supported game controller types


As they reiterate in their message, the Apple Developer Forums are more suited for these types of questions. Good luck!


Game Controller Capability Missing In Xcode for VisionPro

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.