在升級Xcode以後,原來的關於XMPP的項目運行報錯,錯誤信息爲: Redefinition of module 'dnssd'git
系統和XMPP框架同時用到了 'dnssd',大概就是錯誤的緣由。github
網上關於這方面的信息很少,可是仍是在 stackoverflow 中找到了一些信息,原文連接:http://stackoverflow.com/questions/39930741/redefinition-of-module-dnssd-in-swift-3。swift
解決方案:# The version pushed to CocoaPods is very out of date, use master branch for now
pod 'XMPPFramework', :git => "https://github.com/robbiehanson/XMPPFramework.git", :branch => 'master'
#pod 'XMPPFramework',大概意思是須要更新XMPP框架,須要把podfile文件中的 "pod 'XMPPFramework', '~> 3.6.6' "用 " # The version pushed to CocoaPods is very out of date, use master branch for now
pod 'XMPPFramework', :git => "https://github.com/robbiehanson/XMPPFramework.git", :branch => 'master'
# pod 'XMPPFramework' " 來替換或者直接改爲 "pod 'XMPPFramework', '~> 3.7.0' "。框架