- Open Android Studio
- Go to: Tools > Create Command-line Launcher
- Leave as default, Press OK
- Add the following lines to your
.gitconfig
internal let DEFAULT_MIME_TYPE = "application/octet-stream" | |
internal let mimeTypes = [ | |
"html": "text/html", | |
"htm": "text/html", | |
"shtml": "text/html", | |
"css": "text/css", | |
"xml": "text/xml", | |
"gif": "image/gif", | |
"jpeg": "image/jpeg", |
PREFIX=`pwd`/protobuf/android | |
rm -rf ${PREFIX} | |
mkdir ${PREFIX} | |
export NDK=YOUR_NDK_ROOT | |
# 1. Use the tools from the Standalone Toolchain | |
export PATH=YOUR_NDK_STAND_ALONE_TOOL_PATH/bin:$PATH | |
export SYSROOT=YOUR_NDK_STAND_ALONE_TOOL_PATH/sysroot |
The script in this gist will help you buid the Google Protobuf library for use with Mac OS X and iOS. Other methods (such as homebrew or direct compilation) have issues that prevent their use. The libraries built by this script are universal and support all iOS device architectures including the simluator.
The easiest way to use this script is to simply clone the gist onto your