mirror of
https://github.com/firebase/firebase-ios-sdk
synced 2026-11-11 22:55:59 +05:45
31 lines
715 B
Markdown
31 lines
715 B
Markdown
## Usage
|
|
|
|
First, build protobuf and nanopb
|
|
```
|
|
cd firebase-ios-sdk
|
|
mkdir -p build
|
|
cd build
|
|
cmake ..
|
|
make -j protobuf nanopb
|
|
```
|
|
|
|
Next, build the protos:
|
|
```
|
|
cd firebase-ios-sdk/Firestore/Protos
|
|
./build-protos.sh
|
|
```
|
|
|
|
Verify diffs, tests and make PR
|
|
|
|
### Script Details
|
|
|
|
Get the protoc and the gRPC plugin. See
|
|
[here](https://github.com/grpc/grpc/tree/master/src/objective-c). The
|
|
easiest way I found was to add
|
|
`pod '!ProtoCompiler-gRPCPlugin'` to a Podfile and do `pod update`.
|
|
|
|
After running the protoc, shell commands run to fix up the generated code:
|
|
* Flatten import paths for CocoaPods library build.
|
|
* Remove unneeded extensionRegistry functions.
|
|
* Remove non-buildable code from Annotations.pbobjc.*.
|