当前位置:网站首页>No matching function for call to ‘RCTBridgeModuleNameForClass‘
No matching function for call to ‘RCTBridgeModuleNameForClass‘
2022-08-04 05:29:00 【语歆】
XCode升级到12.5 Beta 之后React Native 打包 ios 异常
解决方案:修改 Podfile,新增以下脚本
post_install do |installer|
## Fix for XCode 12.5
find_and_replace("../node_modules/react-native/React/CxxBridge/RCTCxxBridge.mm",
"_initializeModules:(NSArray<id<RCTBridgeModule>> *)modules", "_initializeModules:(NSArray<Class> *)modules")
find_and_replace("../node_modules/react-native/ReactCommon/turbomodule/core/platform/ios/RCTTurboModuleManager.mm",
"RCTBridgeModuleNameForClass(module))", "RCTBridgeModuleNameForClass(Class(module)))")
endPodfile 结尾新增以下脚本
def find_and_replace(dir, findstr, replacestr)
Dir[dir].each do |name|
text = File.read(name)
replace = text.gsub(findstr,replacestr)
if text != replace
puts "Fix: " + name
File.open(name, "w") { |file| file.puts replace }
STDOUT.flush
end
end
Dir[dir + '*/'].each(&method(:find_and_replace))
end
报错截图:

报错日志:
No matching function for call to 'RCTBridgeModuleNameForClass'
cannot initialize a parameter of type 'NSArray<id<RCTBridgeModule>> *' with an lvalue of type 'NSArray<Class> *__strong' NSArray<RCTModuleData *> *newModules = [self _initializeModules:modules withDispatchGroup:NULL lazilyDiscovered:YES];
node_modules/react-native/ReactCommon/turbomodule/core/platform/ios/RCTTurboModuleManager.mm:307:13: No matching function for call to 'RCTBridgeModuleNameForClass'
参考链接:
边栏推荐
- JPEG2jpg
- 典型CCN网络——efficientNet(2019-Google-已开源)
- 线性回归02---波士顿房价预测
- 【深度学习21天学习挑战赛】3、使用自制数据集——卷积神经网络(CNN)天气识别
- Deep Adversarial Decomposition: A Unified Framework for Separating Superimposed Images
- WARNING: sql version 9.2, server version 11.0. Some psql features might not work.
- yolov3 data reading (2)
- 【CV-Learning】卷积神经网络
- PostgreSQL schema (Schema)
- 【深度学习21天学习挑战赛】1、我的手写被模型成功识别——CNN实现mnist手写数字识别模型学习笔记
猜你喜欢

【论文阅读】Exploring Spatial Significance via Hybrid Pyramidal Graph Network for Vehicle Re-identificatio

Logistic Regression --- Introduction, API Introduction, Case: Cancer Classification Prediction, Classification Evaluation, and ROC Curve and AUC Metrics

RecyclerView的用法

AIDL communication between two APPs

逻辑回归---简介、API简介、案例:癌症分类预测、分类评估法以及ROC曲线和AUC指标

Transformer

MFC读取点云,只能正常显示第一个,显示后面时报错

TensorRT 5 初步认识
![[Deep Learning 21 Days Learning Challenge] Memo: What does our neural network model look like? - detailed explanation of model.summary()](/img/99/819ccbfed599ffd52307235309cdc9.png)
[Deep Learning 21 Days Learning Challenge] Memo: What does our neural network model look like? - detailed explanation of model.summary()

简单明了,数据库设计三大范式
随机推荐
深度确定性策略梯度(DDPG)
光条中心提取方法总结(一)
Endnote编辑参考文献
基于PyTorch的FCN-8s语义分割模型搭建
MFC读取点云,只能正常显示第一个,显示后面时报错
【论文阅读】Multi-View Spectral Clustering with Optimal Neighborhood Laplacian Matrix
Image-Adaptive YOLO for Object Detection in Adverse Weather Conditions
(TensorFlow)——tf.variable_scope和tf.name_scope详解
pytorch学习-没掌握的点
【CV-Learning】Convolutional Neural Network
图像resize
TensorFlow: tf.ConfigProto() and Session
ValueError: Expected 96 from C header, got 88 from PyObject
thymeleaf中 th:href使用笔记
双向LSTM
Usage of Thread, Handler and IntentService
Android connects to mysql database using okhttp
多项式回归(PolynomialFeatures)
yolov3中数据读入(一)
Dictionary feature extraction, text feature extraction.