2016-11-18 4 views
0

Xcode 8.1을 사용하고 있습니다. 내 프로젝트에 Cocoa Pods를 사용하여 RealmSwift를 설치하려고합니다. 코코아 포드 버전은 1.1.1입니다. 내가 잘못 뭐하는 거지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 

: Unable to find a specification for 'RealmSwift'

내 Podfile의 내용은 다음과 같음 : 그러나, 나는 다음과 같은 오류를 받고 있어요? iOS 버전이 10.0으로 변경된 경우에도 문제가 지속됩니다.

답변

1

포드 레포에 문제가 있다고 생각합니다. 다시 설정해보십시오 :

pod repo remove master 
pod setup 
pod install 
+0

예 거기에 .. 감사합니다. 나는 다음을 사용했습니다 : rm -rf ~/.cocoapods; 포드 설정 – StudentX