Cocos2d-x v3.3 (Mac OS Big Sur) XCode 13 Property with 'retain (or strong)' attribute must be of object type

Hello everybody
My game is developed with cocos2d-x v3.3 and it working for iOS devices when I build it with XCode 11 in Mac OS Catalina(Version10.15.7)
But this game not working if I update my iPhone iOS version to iOS 15.0.2

It shows

“The developer of this app needs to update it to work with this version of iOS”

I researched in google and found I need to build game again in Mac OS Catalina & XCode 13

So I updated my Mac OS and Xcode and trying to build game again. (Mac OS Big Sur, Xcode v13.0)
But it shows

“Sementic issue”

in "/iOS15.0/Frameworks/GameController/GCDevice.h"
at line 30

Property with ‘retain (or strong)’ attribute must be of object type

I can’t update my game engine from v3.3 because there are too many csb files which make in cocos2d-x v3.3 and etc…
Please help me how to resolve above issue and build game for iOS 15.0.2

Thank you

1 Like

Hello everyone
I just resolved it by remove codes in


I removed codes in this file, so my game don’t have any reference to GameController of iOS
Then build is OK and also game works properly.

But I am wondering if anything happen accidently later if I remove GameController Framework
As I check codes in , the codes are for Notification & Joystick control.

So if my game doesn’t use Notification & Joystick control, then everything will be fine?

Please let me know if anybody knows it…
Thank you