CocoaPods gRPC Update

58 views
Skip to first unread message

Satinder Singh

unread,
Nov 9, 2015, 7:08:24 PM11/9/15
to grpc.io
Hi,

 Can someone update the CocoaPods documentation (https://cocoapods.org/?q=grpc)? The doc and example link are broken. Also, the podfile listed under installation guide does not work. It gives the following error:

[!] Unable to satisfy the following requirements:

- `gRPC (~> 0.11)` required by `Podfile`



Jorge Canizales

unread,
Nov 16, 2015, 2:33:33 PM11/16/15
to grpc.io
Hi Satinder, sorry for that, I know that documentation is bad (tracking the issue here https://github.com/grpc/grpc/issues/2466 ).

I didn't expect a pod install not to work, though: What podfile and podspecs are you using to get that error?

Thanks for the report!
Jorge

Satinder Singh

unread,
Nov 16, 2015, 2:45:56 PM11/16/15
to grpc.io
I was able to fix it by correctly reinstalling all the dependencies. I created my own setup Doc which I have pasted below to help others install it.
  • Xcode (Mac App Store)
  • After installing Xcode, please run the following command for command line developer tools
    • xcode-select --install
  • If you see the following error message: command line tools are already installed. use Software Update, then ignore and continue
  • sudo xcodebuild -license (agree to Xcode License)
  • Other Tools
  • ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • brew install libtool
  • brew install google-protobuf
  • brew install automake
  • brew install autoconf
  • sudo gem install cocoapods
  • curl -fsSL https://goo.gl/getgrpc | bash -
  • git clone https://github.com/grpc/grpc.git
  • git submodule update --init
  • cd into the grpc directory
  • cd examples/objective-c/helloworld/
  • pod install
  • pushd ../../cpp/helloworld
  • make
  • ./greeter_server & (setting up local server)
  • popd
  • open HelloWorld.xcworkspace (DO NOT OPEN HelloWorld.xcodeproj)
  • Within Xcode, go to Product -> Scheme -> Edit Scheme
  • Within the Run sidebar and Info tab, change executable from none to HelloWorld.app
Run Project
Reply all
Reply to author
Forward
0 new messages