Overview
| Comment: | README.md: Update iOS simulator instructions
i386 is no longer a thing for the simulator, but arm64 now is. |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
2ca0e3c7d789016b1fa9f09ad4008b9b |
| User & Date: | js on 2021-11-21 10:13:51 |
| Other Links: | manifest | tags |
Context
|
2021-11-21
| ||
| 10:18 | OFSecureTransportTLSStream: Fix EWOULDBLOCK (check-in: 8cd4bd9fdd user: js tags: trunk) | |
| 10:13 | README.md: Update iOS simulator instructions (check-in: 2ca0e3c7d7 user: js tags: trunk) | |
| 00:41 | OFHTTPClient: Enable non-blocking mode on socket (check-in: 1203f45de1 user: js tags: trunk) | |
Changes
Modified README.md from [6acd9cb987] to [5c9e57c980].
| ︙ | ︙ | |||
166 167 168 169 170 171 172 |
$ 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:
$ clang="clang -isysroot $(xcrun --sdk iphonesimulator --show-sdk-path)"
| | | | | 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 |
$ 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:
$ 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"
$ ./configure --prefix=/usr/local/iossim --host=arm64-apple-darwin
<h3 id="framework-in-xcode">Using the macOS or iOS framework in Xcode</h3>
To use the macOS framework in Xcode, you need to add the `.framework`s to
your project and add the following flags to `Other C Flags`:
-fconstant-string-class=OFConstantString -fno-constant-cfstrings
|
| ︙ | ︙ |