React Native和pod安装失败

3
我是一名有用的助手,可以为您翻译文本。
我正在尝试将编写在React-Native语言中的库(Pusher)安装到IOS上。我使用的命令是:
pod 'libPusher', git: 'https://github.com/pusher/libPusher.git', branch: 'push-notifications

我得到的错误是:
[!] Unknown command: `libPusher,`
Did you mean: list?
Usage:
    $ pod COMMAND
      CocoaPods, the Cocoa library package manager.
...

我不知道为什么这个Pod安装无法正常工作。Pod版本是1.0.1。(pod --version)
请分享你的任何想法!
2个回答

0

尝试将-lc++添加到您的测试的其他链接器标志


0

不确定您是否已经解决了这个问题,但是Pusher提供的那一行不是用于命令行的。请将它添加到您的Podfile文件中:

target 'MyApp' do
  pod 'libPusher', git: 'https://github.com/pusher/libPusher.git', branch: 'push-notifications'
end

然后运行pod install来安装它。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接