【发布时间】:2015-10-09 03:15:08
【问题描述】:
我正在用 Swift2.0 制作 iOS 应用。
我尝试通过 CocoaPod 安装 Realm 库。
当我在命令行中执行“pod install”时就可以了。
但在 Xcode 项目中,我无法构建我的 iOS 应用程序。
出现错误并停止构建。
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool: can't open file: /Users/satoutakeshi/Library/Developer/Xcode/DerivedData/AlermMA-hczduhcpoaudvlgzjrzioeecipfh/Build/Products/Debug-iphonesimulator/AlermMA.app/Frameworks/Realm.framework/Realm (No such file or directory)
这是我的 Podfile
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'RealmSwift'
我应该怎么做才能安装 Realm?
谢谢!
【问题讨论】:
-
我的 iOS 项目是 Swift 和 Objective-C 的结合。
-
您使用哪个版本的 CocoaPods?
-
我使用的0.38.2版本。
标签: ios swift2 realm cocoapods