protobuf/objectivec
2015-05-25 12:48:03 -07:00
..
DevTools Objective C Second Alpha Drop 2015-05-22 14:27:31 -04:00
google/protobuf Fix bugs in objective-c. 2015-05-25 12:48:03 -07:00
ProtocolBuffers_iOS.xcodeproj Fix bugs in objective-c. 2015-05-25 12:48:03 -07:00
ProtocolBuffers_OSX.xcodeproj Fix bugs in objective-c. 2015-05-25 12:48:03 -07:00
Tests Fix bugs in objective-c. 2015-05-25 12:48:03 -07:00
generate_descriptors_proto.sh Objective C Second Alpha Drop 2015-05-22 14:27:31 -04:00
GPBArray_PackagePrivate.h Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 2015-05-06 13:19:14 -04:00
GPBArray.h Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 2015-05-06 13:19:14 -04:00
GPBArray.m Objective C Second Alpha Drop 2015-05-22 14:27:31 -04:00
GPBBootstrap.h Objective C Second Alpha Drop 2015-05-22 14:27:31 -04:00
GPBCodedInputStream_PackagePrivate.h Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 2015-05-06 13:19:14 -04:00
GPBCodedInputStream.h Objective C Second Alpha Drop 2015-05-22 14:27:31 -04:00
GPBCodedInputStream.m Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 2015-05-06 13:19:14 -04:00
GPBCodedOutputStream.h Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 2015-05-06 13:19:14 -04:00
GPBCodedOutputStream.m Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 2015-05-06 13:19:14 -04:00
GPBDescriptor_PackagePrivate.h Objective C Second Alpha Drop 2015-05-22 14:27:31 -04:00
GPBDescriptor.h Objective C Second Alpha Drop 2015-05-22 14:27:31 -04:00
GPBDescriptor.m Objective C Second Alpha Drop 2015-05-22 14:27:31 -04:00
GPBDictionary_PackagePrivate.h Objective C Second Alpha Drop 2015-05-22 14:27:31 -04:00
GPBDictionary.h Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 2015-05-06 13:19:14 -04:00
GPBDictionary.m Objective C Second Alpha Drop 2015-05-22 14:27:31 -04:00
GPBExtensionField_PackagePrivate.h Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 2015-05-06 13:19:14 -04:00
GPBExtensionField.h Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 2015-05-06 13:19:14 -04:00
GPBExtensionField.m Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 2015-05-06 13:19:14 -04:00
GPBExtensionRegistry.h Objective C Second Alpha Drop 2015-05-22 14:27:31 -04:00
GPBExtensionRegistry.m Objective C Second Alpha Drop 2015-05-22 14:27:31 -04:00
GPBField_PackagePrivate.h Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 2015-05-06 13:19:14 -04:00
GPBField.h Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 2015-05-06 13:19:14 -04:00
GPBField.m Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 2015-05-06 13:19:14 -04:00
GPBMessage_PackagePrivate.h Objective C Second Alpha Drop 2015-05-22 14:27:31 -04:00
GPBMessage.h Objective C Second Alpha Drop 2015-05-22 14:27:31 -04:00
GPBMessage.m Objective C Second Alpha Drop 2015-05-22 14:27:31 -04:00
GPBProtocolBuffers_RuntimeSupport.h Objective C Second Alpha Drop 2015-05-22 14:27:31 -04:00
GPBProtocolBuffers.h Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 2015-05-06 13:19:14 -04:00
GPBProtocolBuffers.m Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 2015-05-06 13:19:14 -04:00
GPBRootObject_PackagePrivate.h Objective C Second Alpha Drop 2015-05-22 14:27:31 -04:00
GPBRootObject.h Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 2015-05-06 13:19:14 -04:00
GPBRootObject.m Objective C Second Alpha Drop 2015-05-22 14:27:31 -04:00
GPBTypes.h Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 2015-05-06 13:19:14 -04:00
GPBUnknownFieldSet_PackagePrivate.h Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 2015-05-06 13:19:14 -04:00
GPBUnknownFieldSet.h Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 2015-05-06 13:19:14 -04:00
GPBUnknownFieldSet.m Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 2015-05-06 13:19:14 -04:00
GPBUtilities_PackagePrivate.h Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 2015-05-06 13:19:14 -04:00
GPBUtilities.h Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 2015-05-06 13:19:14 -04:00
GPBUtilities.m Objective C Second Alpha Drop 2015-05-22 14:27:31 -04:00
GPBWellKnownTypes.h Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 2015-05-06 13:19:14 -04:00
GPBWellKnownTypes.m Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 2015-05-06 13:19:14 -04:00
GPBWireFormat.h Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 2015-05-06 13:19:14 -04:00
GPBWireFormat.m Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 2015-05-06 13:19:14 -04:00
README.md Objective C Second Alpha Drop 2015-05-22 14:27:31 -04:00

Protocol Buffers - Google's data interchange format

Build Status

Copyright 2008 Google Inc.

This directory contains the Objective C Protocol Buffers runtime library.

Requirements

The Objective C implemention requires:

  • Objective C 2.0 Runtime (32bit & 64bit iOS, 64bit OS X).
  • Xcode 6.3 (or later).
  • The library code does not use ARC (for performance reasons), but it all can be called from ARC code.

Installation

The full distribution pulled from github includes the sources for both the compiler (protoc) and the runtime (this directory). To build the compiler and run the runtime tests, you can use:

 $ objectivec/DevTools/full_mac_build.sh

This will generate the src/protoc binary.

Usage

There are two ways to include the Runtime sources in your project:

Add objectivec/\*.h & objectivec/GPBProtocolBuffers.m to your project.

or

Add objectivec/\*.h & objectivec/\*.m except for objectivec/GPBProtocolBuffers.m to your project.

If the target is using ARC, remember to turn off ARC (-fno-objc-arc) for the .m files.

The files generated by protoc for the *.proto files (\*.pbobjc.h' and *.pbobjc.m`) are then also added to the target.

The Objective C classes/enums can be used from Swift code.

Objective C Generator Options

objc_class_prefix=<prefix> (no default)

Since Objective C uses a global namespace for all of its classes, there can be collisions. This option provides a prefix that will be added to the Enums and Objects (for messages) generated from the proto. Convention is to base the prefix on the package the proto is in.

Contributing

Please make updates to the tests along with changes. If just changing the runtime, the Xcode projects can be used to build and run tests. If change also require changes to the generated code, objectivec/DevTools/full_mac_build.sh can be used to easily rebuild and test changes. Passing -h to the script will show the addition options that could be useful.

Documentation

The complete documentation for Protocol Buffers is available via the web at:

https://developers.google.com/protocol-buffers/