阅读 149

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<id<RCTBridgeModule>> *' with an rvalue of type 'NSArray<Class> *'


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<Class> *' with an lvalue of type 'NSArray<id<RCTBridgeModule>> *__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<id<RCTBridgeModule>> *' with an lvalue of type 'NSArray<Class> *__strong'


解决方法:

将_initializeModules:(NSArray<id<RCTBridgeModule>> *)modules替换为_initializeModules:(NSArray<Class> *)modules


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

作者:Loki_

原文链接:https://www.jianshu.com/p/75afd2f8fbc1

文章分类
后端
版权声明:本站是系统测试站点,无实际运营。本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 XXXXXXo@163.com 举报,一经查实,本站将立刻删除。
相关推荐