2016-10-04 28 views
1

我想通過podfile安裝和使用SwiftyXMLParserhttps://github.com/yahoojapan/SwiftyXMLParser)。該吊艙文件安裝庫中沒有任何問題,但只要我使用import語句在我的源代碼,並建立工程我與消息相處一堆錯誤"No such module SwiftyXMLParser"無法安裝和使用SwiftyXMLParser庫通過pod

我使用的Xcode 7斯威夫特2.3和我的podfile看起來像這樣。

Podfile

# Uncomment this line to define a global platform for your project 
# platform :ios, '9.0' 

target 'ApplePaySwag' do 

    # Comment this line if you're not using Swift and don't want to use dynamic frameworks 
    use_frameworks! 

    # Pods for ApplePaySwag 
    pod 'SwiftyXMLParser', :git => 'https://github.com/yahoojapan/SwiftyXMLParser.git' 

    target 'ApplePaySwagTests' do 
    inherit! :search_paths 
    # Pods for testing 
    end 

end 

回答

0

你需要指定 「swift2.3」 分支。因爲Cocoapods上的SwiftyXMLParser只支持Swift 3.

pod 'SwiftyXMLParser', :git => 'https://github.com/yahoojapan/SwiftyXMLParser.git', :branch => "swift2.3"