简体   繁体   中英

Unable to install Realm through cocoa pod in iOS

I want to test Realm mobile database and object server. I tried installing Realm through cocoa pod.

My Podfile looks like this

target 'try realm' do
  use_frameworks!
    pod 'RealmSwift'

When I try to install pod I get the following error

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

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

So why I am unable to install Realm?

看来您尚未完全安装Xcode。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM