ios - 无法在 iOS 中通过 cocoa pod 安装 Realm

标签 ios swift cocoapods realm

我想测试 Realm 移动数据库和对象服务器。我尝试通过 cocoa pod 安装 Realm。

我的 Podfile 看起来像这样

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

当我尝试安装 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

但是我在终端中运行了 swift --version 我得到 “Apple Swift 版本 3.0.2 (swiftlang-800.0.63 clang-800.0.42.1)”并且我在我的 mac 上安装了 Xcode 版本 8.2 beta

为什么我无法安装 Realm?

最佳答案

您似乎没有完全安装 Xcode。

关于ios - 无法在 iOS 中通过 cocoa pod 安装 Realm,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43290437/

相关文章:

ios - #import <Library/Library.h> 和 #import <Library.h> 使用 CocoaPods 有什么区别?

ios - Xcode 8.3 存档错误 : Linker command failed with exit code 1

xcode - 我如何在 Swift 中将 Chartboost 与 Cocoapods 结合使用?

ios - 更改 UIRefreshControl 的位置并触发事件

ios - 在另一个 uiimage 之上创建图像

ios - void(^)(NSData*) 是什么意思?

ios - UITableView 向下移动,显示 View Controller 的 View

ios - 如何标准化分贝值并使其介于 0 和 1 之间

ios - (Swift)外部 View 中定义的 UICollectionView 中的 didSelectItemAtIndexPath 不起作用

ios - 呈现 UIAlertController 时出现 CGContext 错误