由于出现信号,命令失败:分段错误:归档时为11 [英] Command failed due to signal: Segmentation fault: 11 while archiving

查看:202
本文介绍了由于出现信号,命令失败:分段错误:归档时为11的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图存档我的应​​用程序并出现此错误: 命令由于信号失败:分段错误:11

I tried to archive my App and get this error: Command failed due to signal: Segmentation fault: 11

当我构建它时,在真实设备上一切都很好.在存档时会发生这种情况.任何想法如何解决?

When I Build it everything went fine, also on real devices. While archiving this happens. Any Ideas how to fix ?

这是错误的一部分:

0  swift                    0x000000010f79f3ad PrintStackTraceSignalHandler(void*) + 45
1  swift                    0x000000010f79eb56 SignalHandler(int) + 790
2  libsystem_platform.dylib 0x00007fffc82d5bba _sigtramp + 26
3  libsystem_platform.dylib 0x0000000000000040 _sigtramp + 936551584
4  swift                    0x000000010cae0de3 swift::CastOptimizer::optimizeUnconditionalCheckedCastAddrInst(swift::UnconditionalCheckedCastAddrInst*) + 1699
5  swift                    0x000000010cb69d4d processFunction(swift::SILFunction&, bool, unsigned int) + 1917
6  swift                    0x000000010cb70c9f (anonymous namespace)::ConstantPropagation::run() + 47
7  swift                    0x000000010caff89e swift::SILPassManager::runOneIteration() + 5166
8  swift                    0x000000010cb051f6 swift::runSILOptimizationPasses(swift::SILModule&) + 3462
9  swift                    0x000000010c7ac0e2 performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*) + 20114
10 swift                    0x000000010c7a52b3 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 17859
11 swift                    0x000000010c7615cf main + 8239
12 libdyld.dylib            0x00007fffc80c8255 start + 1
13 libdyld.dylib            0x00000000000000ee start + 938704538

最后:

1.  While running pass #38147 SILFunctionTransform "Constant Propagation" on SILFunction "@_TTSg5VSC29UIApplicationLaunchOptionsKeyS_s8Hashable5UIKit_P__CSo8NSObjectS2_S0_10ObjectiveC_Ps9AnyObject____TFs17_dictionaryUpCastu2_Rxs8Hashable0_S_rFGVs10Dictionaryxq__GS0_q0_q1__".

推荐答案

尝试为发布禁用Swift编译器优化

Try disabling Swift Compiler Optimization for Release

然后,如果您发现丢失文件的任何错误:

Then if you get any errors for missing files:

在文件的文件检查器中,单击位置"旁边的文件夹图标,然后手动找到文件

In the file inspector of the file click on the folder icon next to "Location" and locate the file manually

这篇关于由于出现信号,命令失败:分段错误:归档时为11的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆