title: Module file was created by an older version of the compiler
body: <p>Using Carthage to manage my dependencies, everything runs fine in the simulator.</p>
  
  <p>However, when building for a device I get the following error:</p>
  
  <p><a href="https://i.stack.imgur.com/B4s4E.png" rel="noreferrer"><img src="https://i.stack.imgur.com/B4s4E.png" alt="enter image description here"></a></p>
  
  <pre><code>Module File was created by an older version of the compiler; rebuild Alamofire and try again: .../DerivedData/Build/Products/Debug-iPhones...
  </code></pre>
  
  <p>I have tried what others suggested to similar issues: deleting my derived data, reinstalling Carthage and rebuilding the frameworks. However, the error has been persistent.</p>