Index: README.md ================================================================== --- README.md +++ README.md @@ -158,21 +158,27 @@

macOS and iOS

Building as a framework

When building for macOS or iOS, everything is built as a `.framework` by - default if `--disable-shared` has not been specified to `configure`. + default if `--disable-shared` has not been specified to `./configure`. The + frameworks will end up in `$PREFIX/Library/Frameworks`. - To build for iOS, use something like this: + To build for macOS, just follow the + regular instructions above. + + To build for iOS, follow the regular instructions, but instead of + `./configure` do something like this: $ clang="clang -isysroot $(xcrun --sdk iphoneos --show-sdk-path)" $ export OBJC="$clang -arch armv7 -arch arm64" $ export OBJCPP="$clang -arch armv7 -E" $ export IPHONEOS_DEPLOYMENT_TARGET="9.0" $ ./configure --prefix=/usr/local/ios --host=arm64-apple-darwin - To build for the iOS simulator, use something like this: + To build for the iOS simulator, follow the regular instructions, but instead + of `./configure` use something like this: $ clang="clang -isysroot $(xcrun --sdk iphonesimulator --show-sdk-path)" $ export OBJC="$clang -arch arm64 -arch x86_64" $ export OBJCPP="$clang -arch arm64 -E" $ export IPHONEOS_DEPLOYMENT_TARGET="9.0"