2017-05-23 2 views
0

포드를 설치하려고합니다. 다음은 내 Podfile입니다 (내 프로젝트 이름은 NLP입니다) :포드를 설치할 수 없습니다.

Preparing 

Analyzing dependencies 

Inspecting targets to integrate 
    Using `ARCHS` setting to build architectures of target `Pods-NLP`: (``) 
    Using `ARCHS` setting to build architectures of target 
    `Pods-SwaggerRolesAndPolicies`: (``) 
    Using `ARCHS` setting to build architectures of target 
    `Pods-SwaggerUserProfile`: (``) 
    Using `ARCHS` setting to build architectures of target 
    `Pods-SwaggerNextStudent`: (``) 
    Using `ARCHS` setting to build architectures of target `Pods-SwaggerLogin`: 
    (``) 
    Using `ARCHS` setting to build architectures of target 
    `Pods-SwaggerNextAttendance`: (``) 
    Using `ARCHS` setting to build architectures of target `Pods-SwaggerNextFee`: 
    (``) 
    Using `ARCHS` setting to build architectures of target 
    `Pods-SwaggerNextStaff`: (``) 

Finding Podfile changes 
    A OpenSSL-Universal 
    - Alamofire 
    - Charts 
    - Crashlytics 
    - FMDB 
    - Fabric 
    - KFSwiftImageLoader 

Resolving dependencies of `Podfile` 

Comparing resolved specification to the sandbox manifest 
    A OpenSSL-Universal 
    - Alamofire 
    - Charts 
    - Crashlytics 
    - FMDB 
    - Fabric 
    - KFSwiftImageLoader 

Downloading dependencies 

-> Using Alamofire (4.4.0) 

-> Using Charts (3.0.1) 

-> Using Crashlytics (3.8.4) 

-> Using FMDB (2.6.2) 

-> Using Fabric (1.6.11) 

-> Using KFSwiftImageLoader (3.0.0) 

-> Installing OpenSSL-Universal (1.0.2.10) 
> Git download 
> Git download 
    $ /usr/bin/git clone https://github.com/krzyzanowskim/OpenSSL.git 
    /var/folders/nz/8hrtwpzd5dj617b_38nqrw940000gn/T/d20170523-2509-vg335k 
    --template= --single-branch --depth 1 --branch 1.0.2.10 
    Cloning into '/var/folders/nz/8hrtwpzd5dj617b_38nqrw940000gn/T/d20170523-2509-vg335k'... 

그것은이 시점에서 쳐지고 : 내가 포드를 설치하려고 할 때

source 'https://github.com/CocoaPods/Specs.git' 
platform :ios, '9.0' 

def pod_target 
    pod 'Alamofire','~>4.4' 
end 

target 'NLP' do 
    use_frameworks! 
    pod_target 
    pod 'KFSwiftImageLoader' 
    pod 'FMDB' 
    pod 'Fabric' 
    pod 'Crashlytics' 
    pod 'Charts' 
    pod 'OpenSSL-Universal' 
end 

target 'SwaggerRolesAndPolicies' do 
    use_frameworks! 
    pod_target 
end 

target 'SwaggerUserProfile' do 
    use_frameworks! 
    pod_target 
end 

target 'SwaggerNextStudent' do 
    use_frameworks! 
    pod_target 
end 

target 'SwaggerLogin' do 
    use_frameworks! 
    pod_target 
end 

target 'SwaggerNextAttendance' do 
    use_frameworks! 
    pod_target 
end 

target 'SwaggerNextFee' do 
    use_frameworks! 
    pod_target 
end 

target 'SwaggerNextStaff' do 
    use_frameworks! 
    pod_target 
end 

다음이 일어나고있다. 어떤 오류가있을 수 있으며 어떻게 해결할 수 있습니까? 오류는 OpenSSL-Universal pod가 추가 된 경우에만 발생합니다. 내 xcode 버전은 8.3.2입니다.

+0

프로젝트 이름/대상 NLP는 왜 다른 목표를 사용하는 경우? – Roy

+0

프로젝트에 다른 대상을 추가했습니다 ... 다른 대상에 Alamofire가 필요하므로 추가했습니다. –

+0

오류가 있는지'--verbose'로'pod install'을 시도하십시오. – Tj3n

답변

0

아래 코드를 podfile 끝에 추가하십시오. 문제를 해결할 수 있습니다.

post_install do |installer| 
installer.pods_project.targets.each do |target| 
    target.build_configurations.each do |config| 
     config.build_settings['SWIFT_VERSION'] = '3.0' 
    end 
end 
end 

감사합니다 ..

+0

답변 해 주셔서 감사합니다. 어떻게 한 시간 후에 자동으로 포드 (나는 코드를 추가하지 않았다)를 설치했는지 모르겠다. –

+0

니스! 지금까지 문제가 해결되었습니다. –

+0

그냥 궁금 해서요 코드가하는 일은 무엇입니까? 그것은 3.0으로 각 대상의 신속한 버전을 설정합니까 ?? –