2016-08-16 65 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