GameCenter and CloudKit on macOS?

Thank you very much! I manage to create my own Objective C class. But when I try to use the GKLocalPlayer the xcode project fails to compile :frowning:

// On the .h file 

#pragma once

#import <Foundation/Foundation.h>
#import <GameKit/GKLocalPlayer.h>

#if PLATFORM_MAC

@interface OnlineSubsystemMacOSObj: NSObject

-(void)printSomething;

@end

#endif

//On .cpp

@implementation OnlineSubsystemMacOSObj

- (void)printSomething {
	GKLocalPlayer *localPlayer = [GKLocalPlayer localPlayer];
	if (![localPlayer isAuthenticated]){
        UE_LOG(LogTemp, Warning, TEXT("Test - user is not loged"));
	}
}

@end

The idea is to call the printSomething function to check if there is any user loged.

I got this error on Xcode:

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_GKLocalPlayer", referenced from:
      objc-class-ref in OnlineSubsystemMacOSObj.cpp.o
ld: symbol(s) not found for architecture x86_64

Any ideas?