title: Unable to install Realm through cocoa pod in iOS
body: <p>I want to test Realm mobile database and object server. I tried installing Realm through cocoa pod.</p>
  
  <p>My Podfile looks like this</p>
  
  <pre><code>target 'try realm' do
    use_frameworks!
      pod 'RealmSwift'
  </code></pre>
  
  <p>When I try to install pod I get the following error</p>
  
  <pre><code>sh build.sh cocoapods-setup
  ./scripts/swift-version.sh: line 59: [: =: unary operator expected
  No version of Xcode found that supports Swift 3.0.2
  </code></pre>
  
  <p>But I have run swift --version in terminal I get 
      "Apple Swift version 3.0.2 (swiftlang-800.0.63 clang-800.0.42.1)" and I have Xcode version 8.2 beta installed on my mac</p>
  
  <p>So why I am unable to install Realm?</p>