【问题标题】:React Native App no longer builds after upgrading to XCode12.5React Native App 升级到 XCode12.5 后不再构建
【发布时间】:2021-07-22 16:10:24
【问题描述】:

我之前在 xcode 11 中构建并在模拟器上运行的 react 本机应用程序。但是,自从升级到 xcode 12.5 后,我收到以下构建错误

Cannot initialize a parameter of type 'NSArray<id<RCTBridgeModule>> *' with an rvalue of type 'NSArray<Class>*'

Cannot initialize a parameter of type 'NSArray<Class> *' with an lvalue of type 'NSArray<id<RCTBridgeModule>> *__strong'

Cannot initialize a parameter of type 'NSArray<id<RCTBridgeModule>> *' with an lvalue of type 'NSArray<Class> *__strong'

这些错误来自我通过 cocoapods 在我的项目中的 react-core。

【问题讨论】:

标签: xcode react-native xcode12


【解决方案1】:

更改RCTCxxBridge.mm624行

Code Block Objective-C
NSArray<id<RCTBridgeModule>> *)modules

Code Block Objective-C
NSArray<Class> *)modules

【讨论】:

    猜你喜欢
    • 2020-10-03
    • 2022-10-20
    • 1970-01-01
    • 2019-11-18
    • 2016-09-23
    • 1970-01-01
    • 2018-09-07
    • 1970-01-01
    • 2023-01-05
    相关资源
    最近更新 更多