当前位置:网站首页>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'
参考链接:
边栏推荐
- MFC 打开与保存点云PCD文件
- 【论文阅读】Further Non-local and Channel Attention Networks for Vehicle Re-identification
- Postgresql 快照
- 动手学深度学习_softmax回归
- Halcon缺陷检测
- 软著撰写注意事项
- TensorFlow2 study notes: 4. The first neural network model, iris classification
- 【论文阅读】Multi-View Spectral Clustering with Optimal Neighborhood Laplacian Matrix
- sklearn中的学习曲线learning_curve函数
- read and study
猜你喜欢
yolov3中数据读入(一)
RecyclerView的用法
Jupyter Notebook安装库;ModuleNotFoundError: No module named ‘plotly‘解决方案。
双重指针的使用
Halcon缺陷检测
【深度学习21天学习挑战赛】3、使用自制数据集——卷积神经网络(CNN)天气识别
逻辑回归---简介、API简介、案例:癌症分类预测、分类评估法以及ROC曲线和AUC指标
Briefly say Q-Q map; stats.probplot (QQ map)
【论文阅读】Mining Cross-Image Semantics for Weakly Supervised Semantic Segmentation
[Deep Learning 21 Days Learning Challenge] Memo: What does our neural network model look like? - detailed explanation of model.summary()
随机推荐
TensorFlow2学习笔记:8、tf.keras实现线性回归,Income数据集:受教育年限与收入数据集
[Introduction to go language] 12. Pointer
sklearn中的pipeline机制
双向LSTM
Vision Transformer 论文 + 详解( ViT )
【论文阅读】Mining Cross-Image Semantics for Weakly Supervised Semantic Segmentation
中国联通、欧莱雅和钉钉都在争相打造的秘密武器?虚拟IP未来还有怎样的可能
postgres 递归查询
安卓连接mysql数据库,使用okhttp
WARNING: sql version 9.2, server version 11.0.Some psql features might not work.
AIDL communication between two APPs
thymeleaf中 th:href使用笔记
周志华机器学习
Introduction of linear regression 01 - API use cases
双重指针的使用
Usage of Thread, Handler and IntentService
浅谈外挂常识和如何防御
sklearn中的学习曲线learning_curve函数
逻辑回归---简介、API简介、案例:癌症分类预测、分类评估法以及ROC曲线和AUC指标
MAE 论文《Masked Autoencoders Are Scalable Vision Learners》