2016-10-04 27 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"