2017-05-23 2 views
0

J'essaie d'installer un module. Voici mon PODFILE (mon nom de projet est la PNL):Impossible d'installer le module

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 

Après se passe lorsque je tente pod installer:

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'... 

Il est être frappé à ce point. Quelle pourrait être l'erreur et comment puis-je la résoudre? L'erreur ne survient que lorsque le module OpenSSL-Universal est ajouté. Ma version de xcode est 8.3.2.

+0

Si votre nom de projet/cible est la PNL pourquoi utilisez-vous d'autres cibles? – Roy

+0

J'ai ajouté d'autres cibles au projet ... J'ai besoin d'Alamofire dans d'autres cibles, donc j'ai ajouté de cette façon. –

+0

essayez 'pod install' avec' --verbose' pour voir s'il y a une erreur – Tj3n

Répondre

0

Ajoutez le code ci-dessous à la fin de votre fichier pod. Cela peut résoudre le problème.

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 

Merci ..

+0

Merci pour la réponse. Je ne sais pas comment mais après une heure, il a automatiquement installé pod (je n'ai pas ajouté votre code). –

+0

Bien! En ce qui concerne résoudre le problème .. –

+0

Juste curieux Que fait votre code? Est-ce qu'il définit la version Swift de chaque cible à 3.0 ?? –