当前位置:网站首页>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)))")
end
Podfile 结尾新增以下脚本
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'
参考链接:
边栏推荐
- 【CV-Learning】Convolutional Neural Network
- Data reading in yolov3 (1)
- 浅谈外挂常识和如何防御
- MySQL最左前缀原则【我看懂了hh】
- TensorFlow2 study notes: 8. tf.keras implements linear regression, Income dataset: years of education and income dataset
- lstm pipeline 过程理解(输入输出)
- TensorFlow: tf.ConfigProto() and Session
- Qt日常学习
- Briefly say Q-Q map; stats.probplot (QQ map)
- read and study
猜你喜欢
【CV-Learning】Convolutional Neural Network
0, deep learning 21 days learning challenge 】 【 set up learning environment
图像形变(插值方法)
[Deep Learning 21 Days Learning Challenge] 1. My handwriting was successfully recognized by the model - CNN implements mnist handwritten digit recognition model study notes
动手学深度学习_softmax回归
【CV-Learning】Object Detection & Instance Segmentation
tensorRT5.15 使用中的注意点
【go语言入门笔记】12、指针
Pytorch问题总结
浅谈游戏音效测试点
随机推荐
详解近端策略优化
WARNING: sql version 9.2, server version 11.0.Some psql features might not work.
[Introduction to go language] 12. Pointer
TensorFlow2 study notes: 7. Optimizer
[Deep Learning 21 Days Learning Challenge] Memo: What does our neural network model look like? - detailed explanation of model.summary()
动手学深度学习_卷积神经网络CNN
[Go language entry notes] 13. Structure (struct)
[Deep Learning 21 Days Learning Challenge] 1. My handwriting was successfully recognized by the model - CNN implements mnist handwritten digit recognition model study notes
Androd Day02
tensorRT5.15 使用中的注意点
投稿相关
postgresql中创建新用户等各种命令
光条提取中的连通域筛除
【深度学习21天学习挑战赛】3、使用自制数据集——卷积神经网络(CNN)天气识别
Vision Transformer 论文 + 详解( ViT )
中国联通、欧莱雅和钉钉都在争相打造的秘密武器?虚拟IP未来还有怎样的可能
【go语言入门笔记】12、指针
YOLOV4流程图(方便理解)
度量学习(Metric learning)—— 基于分类损失函数(softmax、交叉熵、cosface、arcface)
sklearn中的pipeline机制