title: Swift compiler error: segmentation fault: 11 on Archive
body: <p>When archiving my iOS app prior to submission for App Store release, I get an error that says</p>
  
  <blockquote>
    <p>Command failed due to signal: Segmentation fault: 11</p>
  </blockquote>
  
  <p>Then there's a huge block of paths and whatnot and at the end is a mention of a function that I have in the app. Here's the function:</p>
  
  <pre><code>func matrixOperationRequiresScalar(operation: MatrixOperation) -&gt; Bool {
      switch operation {
      case .Addition, .Subtraction, .Multiplication, .Division, .Negative, .Determinant, .Inverse, .Transpose, .EigenOps: return false
      case .ScalarMultiplication, .ScalarDivision, .Power: return true
      }
  }
  </code></pre>
  
  <p>You can tell that <code>operation</code> is an enum and all cases are covered here.</p>
  
  <p>What can I do to fix this?</p>