2016-08-16 75 views
3

我试图安装libary(pusher)到反应本机语言制作的IOS上。React本机和pod安装失败

我使用的命令是

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版本是1.0.1。 (pod --version)

请与我分享任何想法!

回答

0

不知道你是否曾想过这一点,但Pusher给你的行不是用于命令行的。将它添加到您的Podfile:

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

然后运行pod install安装它

0

尝试增加-lc++到你的测试Other Linker Flags