fastlane 获取 CommandPhaseScript 执行错误

fastlane getting CommandPhaseScript execution error

大家好,这是我第一次使用 fastlane,在我成功配置 fastlane 之后,我 运行 'fastlane beta' 在我的 iOS 文件夹中,然后遇到了这个错误10 分钟处理

▸ Processing Info.plist
▸ Running script 'Bundle React Native code and images'
    the transform cache was reset.
▸ Generating 'Vert.app.dSYM'
** ARCHIVE FAILED **


The following build commands failed:
    PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/mariushincu/Library/Developer/Xcode/DerivedData/Vert-dumzflwpkmrgprcgqfpxkqvpyyyw/Build/Intermediates.noindex/ArchiveIntermediates/Vert/IntermediateBuildFilesPath/Vert.build/Release-iphoneos/Vert.build/Script-00DD1BFF1BD5951E006B06BC.sh (in target 'Vert' from project 'Vert')
(1 failure)
[11:03:05]: Exit status: 65

+-------------+-------------------------------------+
|                 Build environment                 |
+-------------+-------------------------------------+
| xcode_path  | /Volumes/Work/Applications/Xcode.a  |
|             | pp                                  |
| gym_version | 2.199.0                             |
| sdk         | iPhoneOS15.0.sdk                    |
+-------------+-------------------------------------+

[11:03:05]: ▸ Command PhaseScriptExecution failed with a nonzero exit code
[11:03:05]: ▸ GenerateDSYMFile /Users/mariushincu/Library/Developer/Xcode/DerivedData/Vert-dumzflwpkmrgprcgqfpxkqvpyyyw/Build/Intermediates.noindex/ArchiveIntermediates/Vert/BuildProductsPath/Release-iphoneos/Vert.app.dSYM /Users/mariushincu/Library/Developer/Xcode/DerivedData/Vert-dumzflwpkmrgprcgqfpxkqvpyyyw/Build/Intermediates.noindex/ArchiveIntermediates/Vert/InstallationBuildProductsLocation/Applications/Vert.app/Vert (in target 'Vert' from project 'Vert')
[11:03:05]: ▸     cd /Volumes/Work/Desktop/workspace_es/development-rider/ios
[11:03:05]: ▸     /Volumes/Work/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil /Users/mariushincu/Library/Developer/Xcode/DerivedData/Vert-dumzflwpkmrgprcgqfpxkqvpyyyw/Build/Intermediates.noindex/ArchiveIntermediates/Vert/InstallationBuildProductsLocation/Applications/Vert.app/Vert -o /Users/mariushincu/Library/Developer/Xcode/DerivedData/Vert-dumzflwpkmrgprcgqfpxkqvpyyyw/Build/Intermediates.noindex/ArchiveIntermediates/Vert/BuildProductsPath/Release-iphoneos/Vert.app.dSYM
[11:03:05]: 
[11:03:05]: ⬆️  Check out the few lines of raw `xcodebuild` output above for potential hints on how to solve this error
[11:03:05]:   For the complete and more detailed error log, check the full log at:
[11:03:05]:   /Users/mariushincu/Library/Logs/gym/Vert-Vert.log
[11:03:05]: 
[11:03:05]: Looks like fastlane ran into a build/archive error with your project
[11:03:05]: It's hard to tell what's causing the error, so we wrote some guides on how
[11:03:05]: to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/
[11:03:05]: Before submitting an issue on GitHub, please follow the guide above and make
[11:03:05]: sure your project is set up correctly.
[11:03:05]: fastlane uses `xcodebuild` commands to generate your binary, you can see the
[11:03:05]: the full commands printed out in yellow in the above log.
[11:03:05]: Make sure to inspect the output above, as usually you'll find more error information there
[11:03:05]: 
+------------------+----------+
|        Lane Context         |
+------------------+----------+
| DEFAULT_PLATFORM | ios      |
| PLATFORM_NAME    | ios      |
| LANE_NAME        | ios beta |
| BUILD_NUMBER     | 28       |
+------------------+----------+
[11:03:05]: Error building the application - see the log above

+------+------------------------+-------------+
|              fastlane summary               |
+------+------------------------+-------------+
| Step | Action                 | Time (in s) |
+------+------------------------+-------------+
| 1    | default_platform       | 0           |
| 2    | increment_build_numbe  | 2           |
|      | r                      |             |
|    | build_app              | 743         |
+------+------------------------+-------------+

[11:03:05]: fastlane finished with errors

这是我在Vert-Vert.log文件

中实际日志末尾找到的
    node --max-old-space-size=8192 /volumes/work/desktop/workspace_es/development-rider/node_modules/react-native/cli.js bundle --entry-file index.js --platform ios --dev false --reset-cache --bundle-output /Users/mariushincu/Library/Developer/Xcode/DerivedData/Vert-dumzflwpkmrgprcgqfpxkqvpyyyw/Build/Intermediates.noindex/ArchiveIntermediates/Vert/BuildProductsPath/Release-iphoneos/main.jsbundle --assets-dest /Users/mariushincu/Library/Developer/Xcode/DerivedData/Vert-dumzflwpkmrgprcgqfpxkqvpyyyw/Build/Intermediates.noindex/ArchiveIntermediates/Vert/BuildProductsPath/Release-iphoneos/Vert.app --minify false
warning: the transform cache was reset.
                    Welcome to Metro!
              Fast - Scalable - Integrated


error SHA-1 for file /volumes/work/desktop/workspace_es/development-rider/node_modules/metro/src/node-haste/DependencyGraph/assets/empty-module.js (/volumes/work/desktop/workspace_es/development-rider/node_modules/metro/src/node-haste/DependencyGraph/assets/empty-module.js) is not computed.
         Potential causes:
           1) You have symlinks in your project - watchman does not follow symlinks.
           2) Check `blockList` in your metro.config.js and make sure it isn't excluding the file path.
ReferenceError: SHA-1 for file /volumes/work/desktop/workspace_es/development-rider/node_modules/metro/src/node-haste/DependencyGraph/assets/empty-module.js (/volumes/work/desktop/workspace_es/development-rider/node_modules/metro/src/node-haste/DependencyGraph/assets/empty-module.js) is not computed.
         Potential causes:
           1) You have symlinks in your project - watchman does not follow symlinks.
           2) Check `blockList` in your metro.config.js and make sure it isn't excluding the file path.
    at DependencyGraph.getSha1 (/volumes/work/desktop/workspace_es/development-rider/node_modules/metro/src/node-haste/DependencyGraph.js:245:13)
    at Transformer.transformFile (/volumes/work/desktop/workspace_es/development-rider/node_modules/metro/src/DeltaBundler/Transformer.js:104:23)
    at Bundler.transformFile (/volumes/work/desktop/workspace_es/development-rider/node_modules/metro/src/Bundler.js:48:30)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:94:5)
    at async Object.transform (/volumes/work/desktop/workspace_es/development-rider/node_modules/metro/src/lib/transformHelpers.js:101:12)
    at async processModule (/volumes/work/desktop/workspace_es/development-rider/node_modules/metro/src/DeltaBundler/traverseDependencies.js:137:18)
    at async addDependency (/volumes/work/desktop/workspace_es/development-rider/node_modules/metro/src/DeltaBundler/traverseDependencies.js:230:18)
    at async Promise.all (index 0)
    at async processModule (/volumes/work/desktop/workspace_es/development-rider/node_modules/metro/src/DeltaBundler/traverseDependencies.js:198:5)
info Run CLI with --verbose flag for more details.
Command PhaseScriptExecution failed with a nonzero exit code

GenerateDSYMFile /Users/mariushincu/Library/Developer/Xcode/DerivedData/Vert-dumzflwpkmrgprcgqfpxkqvpyyyw/Build/Intermediates.noindex/ArchiveIntermediates/Vert/BuildProductsPath/Release-iphoneos/Vert.app.dSYM /Users/mariushincu/Library/Developer/Xcode/DerivedData/Vert-dumzflwpkmrgprcgqfpxkqvpyyyw/Build/Intermediates.noindex/ArchiveIntermediates/Vert/InstallationBuildProductsLocation/Applications/Vert.app/Vert (in target 'Vert' from project 'Vert')
    cd /Volumes/Work/Desktop/workspace_es/development-rider/ios
    /Volumes/Work/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil /Users/mariushincu/Library/Developer/Xcode/DerivedData/Vert-dumzflwpkmrgprcgqfpxkqvpyyyw/Build/Intermediates.noindex/ArchiveIntermediates/Vert/InstallationBuildProductsLocation/Applications/Vert.app/Vert -o /Users/mariushincu/Library/Developer/Xcode/DerivedData/Vert-dumzflwpkmrgprcgqfpxkqvpyyyw/Build/Intermediates.noindex/ArchiveIntermediates/Vert/BuildProductsPath/Release-iphoneos/Vert.app.dSYM

我想提一下,在出现此错误后,我尝试从 Xcode 制作存档,并且成功完成,没有任何错误。

谁能告诉我应该是什么原因?

我已经通过在我的 react-native 项目的根文件夹中创建一个 fastlane 文件夹并在其中启动了 fastlane 命令来设法解决了这个问题。在我以前在 iOS 文件夹中有 fastlane 文件夹之前。

现在文件夹结构如下所示

    • android
    • ios
    • 快车道
      • 应用文件
      • 快速文件
      • 宝石文件
      • 健身房文件