更新到Xcode12.1(用的ios14.1的sdk)后项目编译不过了

cocos2d-x版本:3.3
以前能编译过的项目现在编译报这个错:
In file included from /cocos2d/cocos/base/CCController-iOS.mm:37:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/GameController.framework/Headers/GameController.h:51:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/GameController.framework/Headers/GCDevice.h:30:1: error: property with ‘retain (or strong)’ attribute must be of object type
@property (nonatomic, strong) dispatch_queue_t handlerQueue API_AVAILABLE(macos(10.9), ios(7.0), tvos(7.0));
^
1 error generated.

网上查了error: property with ‘retain (or strong)’ attribute must be of object type这个错是要在文件里加个什么东西,但是报错那个文件是ios的sdk里的,这个到底是改引擎代码还是改ios的sdk呀?

xcode换回11.7就好了。。。。太坑了,现在c++没人维护了搜遍了找不到解决方案。。。

解决了没有,:sob:接入广告SDK还必须用xcode12

暂时没找到办法解决,报错的是ios14.1的sdk里的文件,应该是cocos的写法和ios最新sdk的冲突,看得懂oc的可以在cocos的.mm文件里试着改一下

修改cocos2d_lib.xcodeproj工程的设置
buildsettings->Deployment->iosDeploymentTarget 把版本改高点 跟外部版本一致就行 我自己修改成了9.0

https://blog.csdn.net/u012781881/article/details/109718815