简体   繁体   English

无法通过iOS中的可可豆安装Realm

[英]Unable to install Realm through cocoa pod in iOS

I want to test Realm mobile database and object server. 我想测试Realm移动数据库和对象服务器。 I tried installing Realm through cocoa pod. 我尝试通过可可豆荚安装Realm。

My Podfile looks like this 我的Podfile看起来像这样

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

When I try to install pod I get the following error 当我尝试安装Pod时,出现以下错误

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 但是我在终端中运行了swift --version,我得到了“ Apple Swift版本3.0.2(swiftlang-800.0.63 clang-800.0.42.1)”,并且我的Mac上安装了Xcode 8.2 beta

So why I am unable to install Realm? 那么,为什么我无法安装Realm?

看来您尚未完全安装Xcode。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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