title: Command failed due to signal: Segmentation fault: 11 while archiving
body: <p>I tried to archive my App and get this error: 
  Command failed due to signal: Segmentation fault: 11</p>
  
  <p>When I Build it everything went fine, also on real devices. While archiving this happens. Any Ideas how to fix ?</p>
  
  <p>This is a part of the error:</p>
  
  <pre><code>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&amp;, 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&amp;) + 3462
  9  swift                    0x000000010c7ac0e2 performCompile(swift::CompilerInstance&amp;, swift::CompilerInvocation&amp;, llvm::ArrayRef&lt;char const*&gt;, int&amp;, swift::FrontendObserver*) + 20114
  10 swift                    0x000000010c7a52b3 swift::performFrontend(llvm::ArrayRef&lt;char const*&gt;, char const*, void*, swift::FrontendObserver*) + 17859
  11 swift                    0x000000010c7615cf main + 8239
  12 libdyld.dylib            0x00007fffc80c8255 start + 1
  13 libdyld.dylib            0x00000000000000ee start + 938704538
  </code></pre>
  
  <p>And at the end:</p>
  
  <pre><code>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__".
  </code></pre>