gpt4 book ai didi

react-native - React Native - iOS 发布构建失败

转载 作者:行者123 更新时间:2023-12-03 20:42:19 29 4
gpt4 key购买 nike

存档在发布版本中失败并出现以下错误,但这不是调试版本的问题

** ARCHIVE FAILED **

The following build commands failed:

CompileC .../_appcircle_temp/appcircle_export_archive/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/project/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/Flipper-Folly.build/Objects-normal/armv7/VirtualEventBase.o .../_appcircle_temp/Repository/ios/Pods/Flipper-Folly/folly/io/async/VirtualEventBase.cpp normal armv7 c++ com.apple.compilers.llvm.clang.1_0.compiler
PodFile
use_flipper!({ 'Flipper-Folly' => '2.5.1' })
pre_install do |installer|
$RNMBGL.pre_install(installer)
end
post_install do |installer|
$RNMBGL.post_install(installer)
flipper_post_install(installer)
fix_deployment_target(installer)
end
end

def fix_deployment_target(installer)
return if !installer
project = installer.pods_project
project_deployment_target = project.build_configurations.first.build_settings['IPHONEOS_DEPLOYMENT_TARGET']

puts "Make sure all pods deployment target is #{project_deployment_target.green}"
project.targets.each do |target|
puts " #{target.name}".blue
target.build_configurations.each do |config|
old_target = config.build_settings['IPHONEOS_DEPLOYMENT_TARGET']
new_target = project_deployment_target
next if old_target == new_target
puts " #{config.name}: #{old_target.yellow} -> #{new_target.green}"
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = new_target
end
end
end

最佳答案

如果在您的错误消息中您得到了 DerivedData 的一些信息,删除专用于您的应用程序的 DerivedData 中的完整子文件夹总是一个好主意。
之后我会做 pod install并在 Xcode 中清理并重试构建应用程序。

关于react-native - React Native - iOS 发布构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66643397/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com