It is possible to use Apache Thrift only as serializer and deserializer on Objective-C. To do it, you should use: TMemoryBuffer as transport. TBinaryProtocol as protocol. Serializer example: Note that, TMemoryBuffer doesn’t support framing. You should encode frame size yourself, if you need it.
If you want to develop a Cocoa/Objective-C application with Thrift support, I should note that there are some limitations in the current version (0.9.0): Thrift’s protocols describe “what” is transmitted, and transports are the “how”. Only binary protocol is implemented (TBinaryProtocol). TBinaryProtocol creates a binary data which doesn’t have length field. If you want to use […]
Below steps are to install Thrift on Mac OS X, especially if you want to use it with Java, C/C++ and Cocoa support only. 1- Install Xcode from the Mac App Store Note: If you want install “Command Line Tools for Xcode” only, you can use below command: xcode-select –install 2- Launch Xcode, open the […]