2016-11-18 10 views
0

私はXcode 8.1を使用しています。私はCocoa Podsを使って私のプロジェクトにRealmSwiftをインストールしようとしています。 Cocoa Podsのバージョンは1.1.1です。しかし、私は次のエラーを取得しています:私のPodfileの Unable to find a specification for 'RealmSwift'Cocoaポッドを使用してRealmSwiftを読み込めません。

内容は以下の通りである:

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に変更しても問題は解決しません。

答えて

1

あなたのポッドレポに問題があると思います。もう一度セットアップしてみてください。

pod repo remove master 
pod setup 
pod install 
+0

はいありました。ありがとうございました。私は以下を使用しました:rm -rf〜/ .cocoapods;ポッドセットアップ – StudentX

関連する問題