0
我正在使用Xcode 8.1。我正在尝试使用Cocoa Pods在我的项目中安装RealmSwift。可可豆荚版本是1.1.1。不过,我发现了以下错误: Unable to find a specification for 'RealmSwift'
无法使用可可豆荚装载RealmSwift
我Podfile的内容给出如下:
platform :ios, '9.0'
target 'Validator' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
pod 'RealmSwift'
end
# Pods for Validator
target 'ValidatorTests' do
inherit! :search_paths
# Pods for testing
use_frameworks!
pod 'RealmSwift'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '2.3' # or '3.0'
end
end
end
我在做什么错?即使iOS版本更改为10.0,问题仍然存在。
是的,有..谢谢..我使用了以下内容:rm -rf〜/ .cocoapods;荚设置 – StudentX