Xcode12.5 适配问题记录

Xcode从12.4升级到12.5,运行项目报错

1、报错1

/Users/singcloud/Desktop/ReactNative/xx/xxx/node_modules/react-native/React/CxxBridge/RCTCxxBridge.mm:311:34: Cannot initialize a parameter of type 'NSArray> *' with an rvalue of type 'NSArray *'


2、报错2

/Users/singcloud/Desktop/ReactNative/xx/xxx/node_modules/react-native/React/CxxBridge/RCTCxxBridge.mm:751:79: Cannot initialize a parameter of type 'NSArray *' with an lvalue of type 'NSArray> *__strong'


3、报错3

/Users/singcloud/Desktop/ReactNative/xx/xxx/node_modules/react-native/React/CxxBridge/RCTCxxBridge.mm:802:69: Cannot initialize a parameter of type 'NSArray> *' with an lvalue of type 'NSArray *__strong'


解决方法:

将_initializeModules:(NSArray> *)modules替换为_initializeModules:(NSArray *)modules


参考:https://github.com/facebook/react-native/issues/28405#issuecomment-827424477

你可能感兴趣的:(Xcode12.5 适配问题记录)