2017-02-18 1 views
0

J'utilise cocoapods pour installer SwiftyJSON dans Xcode 7.3.1Swift 2.2 et j'obtiens 158 erreurs de construction. C'est le pod J'utilise:Comment intégrer SwiftyJSON Cocoapod dans Xcode 7.3.1 Swift 2.2

pod 'SwiftyJSON', :git => 'https://github.com/SwiftyJSON/SwiftyJSON.git' 

De ma compréhension de la branche a été mis à jour Swift 3 et Xcode 8 mais je dois être sur une version plus ancienne, personne ne sait ce qu'il est?

Répondre

2

Vous pouvez utiliser la branche swift2 en ajoutant ceci:

: branche => 'swift2'

+0

hey man, merci pour les conseils. Voulez-vous dire comme ceci: pod 'SwiftyJSON',: git => 'https://github.com/SwiftyJSON/SwiftyJSON.git':branch =>' swift2 ' –

+0

ne pas oublier la virgule entre: git =>' https://github.com/SwiftyJSON/SwiftyJSON.git ', et: branche – Nevres

+0

Ça a marché! Merci mec :) –