title: ios - Xcode 10: Razorpay pod "module compiled with Swift 4.1 cannot be imported by the Swift 4.2 compiler"
body: <p>Earlier I was using Xcode 9.3 but yesterday I updated it to Xcode 10 and its giving me compiler error:</p>
  
  <blockquote>
    <p>error: module compiled with Swift 4.1 cannot be imported by the Swift 4.2 compiler: /Users/viraj/Desktop/Vachan app/vachan-ios/Pods/razorpay-pod/Pod/Razorpay.framework/Modules/Razorpay.swiftmodule/x86_64.swiftmodule</p>
  </blockquote>
  
  <p>things which I have tried to resolve it </p>
  
  <ul>
  <li>pod update.</li>
  <li><p>deleting all pods and reinstalling them.</p></li>
  <li><p>deleting derived data.</p></li>
  <li>In Xcode 10, I have the project setting, Swift Language 
  Version, set to Swift 4.Here is the image 
  <a href="https://i.stack.imgur.com/hWMi1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hWMi1.png" alt="enter image description here"></a></li>
  <li>clean ,build and relaunching xcode.</li>
  </ul>
  
  <p>Does anyone have suggestions on how to resolve this? Am I missing something? Xcode bug?</p>