React Native和pod安装失败

时间:2016-08-16 04:58:33

标签: react-native cocoapods

我试图将libary(推送器)安装到使用react-native语言制作的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 :(得分:0)

不确定你是否想过这个,但是Pusher给你的不是命令行。将其添加到您的Podfile:

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

然后运行pod install进行安装

答案 1 :(得分:0)

尝试将-lc++添加到您的测试Other Linker Flags

相关问题