由于依赖性,通过 cocoapods 安装 XMPPFramework 失败

XMPPFramework install through cocoapods failing because of dependency

我正在使用 cocopods 版本 0.39.0 当我尝试为 XMPPFramework (pod 'XMPPFramework', :git => "https://github.com/robbiehanson/XMPPFramework.git", :branch => 'master') 安装 pod 时,出现以下错误:

[!] Unable to satisfy the following requirements:

libidn (~> 1.33.0) required by XMPPFramework (3.7.0)

求助?!

已修复。添加行:

pod 'libidn', '~> 1.33.0'

在 podfile 中,因为它是一个依赖项。