title: Cannot build source in XCODE 8 iOS 10
body: <p>I have developed iOS application using Swift 2.3. and I have put the application to the app store in review process, apparently they have rejected it due to crash in iOS 10 . </p>
  
  <p>Then in order to fix it I have downloaded the Xcode 8 and tried to build the app without converting code in to swift 3 using legacy setting</p>
  
  <p>But I couldn't build the app. There was few compile errors in pods that I have used. (Alamofire framework)</p>
  
  <p>error :-  and there will more </p>
  
  <pre><code>private func trustIsValid(trust: SecTrust) -&gt; Bool {
          var isValid = false
  
          var result = SecTrustResultType(kSecTrustResultInvalid)
          let status = SecTrustEvaluate(trust, &amp;result)
  
          if status == errSecSuccess {
              let unspecified = SecTrustResultType(kSecTrustResultUnspecified)
              let proceed = SecTrustResultType(kSecTrustResultProceed)
  
              isValid = result == unspecified || result == proceed
          }
  
          return isValid
      }
  </code></pre>
  
  <p>So I did a small digging apparently Alamofire has released a new version for Xcode 8 so i have put that version, apparently I can't integrate that version in to my source code since it's in Swift 2.3.</p>
  
  <p>Can someone help me to get over with this issue, problem was I can't release the app to App store since there is a crash in iOS 10 and I can't check it since I don't have iOS 10.</p>