2014-02-18 4 views
0

내 포드 파일의 내용입니다.코코아 포드 : 포드 설치 문제

platform:ios, '5.0' 

pod 'AFNetworking', :'~> 1.1.0' 

$ pod를 설치하려고합니다. 다음과 같은 오류가 발생합니다.

[!] Pod::Executable clone "https://github.com/AFNetworking/AFNetworking.git" "/Users/administrator/Library/Caches/CocoaPods/GitHub/a7f129229d47b74a225e1e2ed0bc604f35d71ac7" --mirror 

Cloning into bare repository '/Users/administrator/Library/Caches/CocoaPods/GitHub/a7f129229d47b74a225e1e2ed0bc604f35d71ac7'... 
fatal: unable to access 'https://github.com/AFNetworking/AFNetworking.git/': Failed connect to github.com:443; Operation timed out 

계속 진행할 수 없습니다. 이슈가 뭐야?

+0

은 내가 podfile가'없이'포드 'AFNetworking', '~> 1.1.0''해야한다고 생각 너 그렇게 해? – Divya

+0

심지어 다음과 같은 문제가 발생했습니다 .. [!] 포드 :: 실행 가능한 복제 "https://github.com/AFNetworking/AFNetworking.git" "/ 사용자/관리자/라이브러리/캐시/CocoaPods/GitHub/a7f129229d47b74a225e1e2ed0bc604f35d71ac7" - 미러 베어 리포지토리로 복제 '/ 사용자/관리자/라이브러리/캐시/CocoaPods/GitHub/a7f129229d47b74a225e1e2ed0bc604f35d71ac7'... 치명적 : 'https://github.com/AFNetworking/AFNetworking.git/'에 액세스 할 수 없습니다. : github.com:443에 연결하지 못했습니다. 작업 시간이 초과되었습니다 – Rajesh

답변

0

이전 버전의 AFNetworking을 사용하고 있습니다. 배포 대상이 5.0이기 때문에 Mac OS 버전은 10.7입니다.

사양 :`.Can :

Pod::Spec.new do |s| 
    s.name  = 'AFNetworking' 
    s.version = '1.1.0' 
    s.license = 'MIT' 
    s.summary = 'A delightful iOS and OS X networking framework.' 
    s.homepage = 'https://github.com/AFNetworking/AFNetworking' 
    s.authors = { 'Mattt Thompson' => '[email protected]', 'Scott Raymond' => '[email protected]' } 
    s.source = { :git => 'https://github.com/AFNetworking/AFNetworking.git', :tag => '1.1.0' } 
    s.source_files = 'AFNetworking' 
    s.requires_arc = true 

    **s.ios.deployment_target = '5.0'** 
    s.ios.frameworks = 'MobileCoreServices', 'SystemConfiguration' 

    **s.osx.deployment_target = '10.7'** 
    s.osx.frameworks = 'CoreServices', 'SystemConfiguration' 

    s.prefix_header_contents = <<-EOS 
#ifdef __OBJC__ 
#import <Availability.h> 
#if __IPHONE_OS_VERSION_MIN_REQUIRED 
    #import <SystemConfiguration/SystemConfiguration.h> 
    #import <MobileCoreServices/MobileCoreServices.h> 
#else 
    #import <SystemConfiguration/SystemConfiguration.h> 
    #import <CoreServices/CoreServices.h> 
#endif 
#endif /* __OBJC__*/ 
EOS 
end 

그렇게해야 사용 업데이트 버전 https://github.com/AFNetworking/AFNetworking/wiki/Getting-Started-with-AFNetworking

+0

내가 포드 파일에서 언급했듯이. 플랫폼 : ios, '5.0' 나는 그것을 ios5에서 원한다. – Rajesh