当前位置:网站首页>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'
参考链接:
边栏推荐
- [Deep Learning 21-Day Learning Challenge] 3. Use a self-made dataset - Convolutional Neural Network (CNN) Weather Recognition
- TensorFlow: tf.ConfigProto() and Session
- Data reading in yolov3 (1)
- 双向LSTM
- 【go语言入门笔记】12、指针
- YOLOV4流程图(方便理解)
- 线性回归02---波士顿房价预测
- 【CV-Learning】卷积神经网络
- [Deep Learning 21 Days Learning Challenge] 2. Complex sample classification and recognition - convolutional neural network (CNN) clothing image classification
- Image-Adaptive YOLO for Object Detection in Adverse Weather Conditions
猜你喜欢

TensorFlow2 study notes: 5. Common activation functions
![[Deep Learning 21 Days Learning Challenge] 1. My handwriting was successfully recognized by the model - CNN implements mnist handwritten digit recognition model study notes](/img/62/ab3dbbd7d4d0009c7cba5e45879f25.png)
[Deep Learning 21 Days Learning Challenge] 1. My handwriting was successfully recognized by the model - CNN implements mnist handwritten digit recognition model study notes

光条提取中的连通域筛除

【CV-Learning】图像分类

动手学深度学习__张量

Simple and clear, the three paradigms of database design

TensorRT 5 初步认识

Android connects to mysql database using okhttp

postgresql 游标(cursor)的使用

Image-Adaptive YOLO for Object Detection in Adverse Weather Conditions
随机推荐
属性动画的用法 以及ButterKnife的用法
YOLOV5 V6.1 详细训练方法
Usage of RecyclerView
【代码学习】
【深度学习21天学习挑战赛】备忘篇:我们的神经网模型到底长啥样?——model.summary()详解
图像线性融合
【CV-Learning】线性分类器(SVM基础)
Thoroughly understand box plot analysis
Attention Is All You Need(Transformer)
YOLOV4流程图(方便理解)
Comparison of oracle's number and postgresql's numeric
计算某像素点法线
典型CCN网络——efficientNet(2019-Google-已开源)
审稿意见回复
度量学习(Metric learning、损失函数、triplet、三元组损失、fastreid)
【论文阅读】Further Non-local and Channel Attention Networks for Vehicle Re-identification
oracle临时表与pg临时表的区别
TensorFlow2 study notes: 6. Overfitting and underfitting, and their mitigation solutions
Th in thymeleaf: href use notes
两个APP进行AIDL通信