2

我最近将我的项目转换为 Swift 3 并且还安装了 XMPP 框架。
当我运行项目时,出现错误“模块'dnssd'的重新定义”。这是我的版本swift 2的代码...

module dnssd [system] {
header "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/dns_sd.h"
export *

}

它会自动转换为swift 3

module dnssd [system] [extern_c] {
    header "dns_sd.h"
    export *
}

当我尝试编辑某些内容时,它显示错误“编辑此文件的权限被拒绝。
请帮助我如何解决这个问题。

4

2 回答 2

2

通过使两个模块不同来使其工作。将模块“module.modulemap”重命名为 dnssd1。

于 2017-07-26T06:48:48.700 回答
1

根据这个更改我的 Podfile 解决了这个问题:

# 推送到 CocoaPods 的版本非常过时,现在使用 master 分支
pod 'XMPPFramework', :git => " https://github.com/robbiehanson/XMPPFramework.git ", :branch => 'master'
#吊舱'XMPPFramework'

于 2016-10-10T05:43:38.093 回答