This will generate a pair of `.pbobjc.h`/`.pbobjc.m` files for each `.proto` file, with the messages and enums defined in them. And a pair of `.pbrpc.h`/`.pbrpc.m` files for each `.proto` file with services defined. The latter contains the code to make remote calls to the specified API.
## Integrate the generated gRPC library in your project
## Integrate the generated gRPC library in your project<aname="cocoapods"></a>
@ -73,13 +81,13 @@ Finally, in your project's directory, run:
pod install
```
## Use the generated library in your code
## Use the generated library in your code<aname="use"></a>
Please check this [sample app][] for examples of how to use a generated gRPC library.
## Alternative methods
## Alternative methods<aname="alternatives"></a>
### Install protoc and the gRPC plugin without using Homebrew
### Install protoc and the gRPC plugin without using Homebrew<aname="nohomebrew"></a>
First install v3 of the Protocol Buffers compiler (_protoc_), by cloning [its Git repository](https://github.com/google/protobuf) and following these [installation instructions](https://github.com/google/protobuf#c-installation---unix) (the ones titled C++; don't miss the note for Mac users).
If you don't want to create the symbolic link, you can alternatively copy the binary (with the appropriate name). Or you might prefer instead to specify the plugin's path as a flag when invoking _protoc_, in which case no system modification nor renaming is necessary.
### Integrate the generated gRPC library without using Cocoapods
### Integrate the generated gRPC library without using Cocoapods<aname="nococoapods"></a>
You need to compile the generated `.pbpbjc.*` files (the enums and messages) without ARC support, and the generated `.pbrpc.*` files (the services) with ARC support. The generated code depends on v0.3+ of the Objective-C gRPC runtime library and v3.0+ of the Objective-C Protobuf runtime library.