No such module 'GameKit'

I've downloaded from sample code "HelloGameKit" but whe I try to build I get "No such module 'GameKit'" in PlayersInterfaceController.swift that is in the "HelloGameKit WatchKit Extension" folder, the GameKit framework is there, I expected that a project that is also recent, dowloaded from Apple, should build without any issue, I can't find the solution, could you please help me?

Replies

Are you building for the simulator? Or for a real device? If you’re building for the simulator, that won’t work, as discussed in the Xcode Release Notes:

The GameKit framework is missing from the SDK for the watchOS simulator. To work around this issue, develop for GameKit using a watchOS device which does include the framework. (27899791)

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Thank you for the prompt reply