- Install brew from brew site.
- Install cmake from cmake site.
- Optional Install JDK from oracle site. (my backed written on JAVA)
- Install packages from brew:
- openssl
- libevent
- bison
- Clone repo apocolipse/thrift
- Open Cmake app. Specify where thrift sources located and where to build you app (first image below).
- Set variables for: (look images below)
- openssl
- libevent
- bison
- Generate Xcode project in Cmake app.
- Open Xcode. Build schemes:
- all_build
- parse
- thrift_compier
- install
.../thrift-master/compiler/cpp/src/thrift/thrifty.yy, invalid directive: `%code`
Replace %code required { }
with %{...%}
https://cmake.org/cmake/help/v3.0/module/FindOpenSSL.html
If you need to have this software first in your PATH run:
echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile
For compilers to find this software you may need to set:
LDFLAGS: -L/usr/local/opt/openssl/lib
CPPFLAGS: -I/usr/local/opt/openssl/include
If you need to have this software first in your PATH run:
echo 'export PATH="/usr/local/opt/bison/bin:$PATH"' >> ~/.bash_profile
For compilers to find this software you may need to set:
LDFLAGS: -L/usr/local/opt/bison/lib
thrift --gen swift:async_clients,debug_descriptions -out ~/Desktop/ my_interface.thrift