【问题标题】:Trying to install XMPPFramework in my objective c Project using Podfile尝试使用 Podfile 在我的目标 c 项目中安装 XMPPFramework
【发布时间】:2025-12-28 03:05:07
【问题描述】:

我正在尝试使用 Podfile 在我的目标 c 项目中安装 XMPPFramework。我已经在我的 Podfile 中写了这个:

platform :ios, ‘8.0’
use_frameworks!

target ‘XMPP’ do
pod 'XMPPFramework', :git =>"https://github.com/robbiehanson/XMPPFramework.git", :branch => 'master'

end 

但是当pod install 这个错误显示在控制台中时,我收到了这个错误。这是控制台的图像::

谁能帮帮我。谢谢。

【问题讨论】:

    标签: objective-c xcode xmppframework


    【解决方案1】:

    将此添加到您的 pod 文件中,

    pod 'XMPPFramework'

    删除,

    pod 'XMPPFramework', :git =>"https://github.com/robbiehanson/XMPPFramework.git", :branch => '主'

    跑步,

    吊舱安装

    试试这个。希望对你有帮助。

    【讨论】:

    • 感谢@KAR,它成功完成了,但是打开项目后它在构建时出错,这是错误消息:重新定义 mudule 'dnssd'
    • @premnath 如何解决问题重新定义模块 dnssd ?