Changes made in
THRIFT-2180 to TBinaryProtocol broke little-endian message reading. Message-writing was also affected.
This was not caught by tests, because the cross-tests appear not to include the Cocoa platform.
A minimal patch is attached to address this.
I wrote a local test using a StreamTransport, which lets me use NSStream to read/write via in-memory buffers easily (or file handles - the existing transports probably should have been written in terms of this standard Foundation abstraction) to verify that write/read of a message agree on how to read-write.