PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/xeliumtech/Library/Developer/Xcode/DerivedData/MyProject-dnhytywafolqjdfyogwnjlgwovis/Build/Intermediates.noindex/ArchiveIntermediates/MyProject/IntermediateBuildFilesPath/MyProject.build/Release-iphoneos/MyProject.build/Script-00DD1BFF1BD5951E006B06BC.sh (in target 'MyProject' from project 'MyProject')
error Cannot read properties of undefined (reading 'transformFile').
TypeError: Cannot read properties of undefined (reading 'transformFile')
at /Users/xeliumtech/Documents/Project/Vouch/node_modules/metro/src/Bundler.js:95:34
at Generator.next (<anonymous>)
at asyncGeneratorStep (/Users/xeliumtech/Documents/Project/Vouch/node_modules/metro/src/Bundler.js:14:24)
at _next (/Users/xeliumtech/Documents/Project/Vouch/node_modules/metro/src/Bundler.js:36:9)
info Run CLI with --verbose flag for more details.
Command PhaseScriptExecution failed with a nonzero exit code
字符串
当通过Xcode 14(Mac M1)运行react本机代码时,它工作正常,因为它处于调试模式,但在存档时显示错误。我降级节点-版本14.18.1我尝试删除节点模块和pod文件与锁定文件也和重新安装它。但仍然面临着同样的问题。
1条答案
按热度按时间ubby3x7f1#
我也试过这个但对我不起作用
如果您使用的是M1'系列Mac,您可以尝试以下操作:
1.选择Xcode Build Phases选项卡
1.展开Bundle React Native代码和镜像阶段
1.更改如下脚本:
字符串