1

我想将我的带有 Fastlane 的 react-native 应用程序部署到 TestFlight,我得到以下错误

编译 main.m

致命错误:找不到模块映射文件“/Users/amir/Library/Developer/Xcode/DerivedData/AwesomeProject-bitngzmdoketklfzyahmkpigwbxk/Build/Intermediates.noindex/ArchiveIntermediates/AwesomeProject/BuildProductsPath/Release-iphoneos/YogaKit/YogaKit.modulemap”

编译 AwesomeProject_vers.c ** 存档失败 **

以下构建命令失败:CompileC /Users/amir/Library/Developer/Xcode/DerivedData/AwesomeProject-bitngzmdoketklfzyahmkpigwbxk/Build/Intermediates.noindex/ArchiveIntermediates/AwesomeProject/IntermediateBuildFilesPath/AwesomeProject.build/Release-iphoneos/AwesomeProject.build/Objects- normal/armv7/AwesomeProject_vers.o /Users/amir/Library/Developer/Xcode/DerivedData/AwesomeProject-bitngzmdoketklfzyahmkpigwbxk/Build/Intermediates.noindex/ArchiveIntermediates/AwesomeProject/IntermediateBuildFilesPath/AwesomeProject.build/Release-iphoneos/AwesomeProject.build/DerivedSources/ AwesomeProject_vers.c 正常 armv7 c com.apple.compilers.llvm.clang.1_0.compiler(在项目“AwesomeProject”的目标“AwesomeProject”中)

这是我可以在 Xcode 中打开应用程序的地方(the .xcworkspace, NOT .xcodeproj/),然后在设备和模拟器中运行应用程序并构建它而不会出现任何错误。

Fastfile 的健身房部分是:

gym(
    workspace: "AwesomeProject.xcworkspace",
    configuration: "Release",
    scheme: "AwesomeProject",
    export_method: "app-store",
    output_directory: output_directory,
    output_name: file_name,
    clean: true,
    include_bitcode: true
  )

环境

"react": "17.0.2",
"react-native": "0.65.1",
Xcode 13.0-Build version 13A233
fastlane-2.194.0

项目根目录下的 Gemfile 内容

source "https://rubygems.org"
gem "cocoapods", "~> 1.11.2"
gem 'fastlane'
gem "xcode-install"
4

1 回答 1

-2

解决我的问题的是删除Pods文件夹Podfile.lock 并安装 podbundle

于 2021-09-27T14:13:23.957 回答