【德州扑克开发记录】Mac quick-3.3模拟器接入protobuf
接入protobuf
a.按照protobuf接入教程接好
b.xcode重编时找不到libsqlite3.dylib和libz.dylib库
解决方法如下:
step 1 :
- Go to Build Phases > Link Binary with Libraries > + > Add other
- While in the file selection window press: "CMD"+Shift+G (i.e. Go to folder) and type /usr/lib/
- From /user/lib find and add : libz.dylib and libsqlite3.dylib
step 2: open your terminal (for mac)
cd /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib
sudo ln -s /usr/lib/libsqlite3.dylib libsqlite3.dylib
sudo ln -s /usr/lib/libz.dylib libz.dylib
以上,模拟器就可以用protobuf了。