Overview
Comment: | README.md: Fix iOS instructions |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
24a132495e393a40397fedd272fa35b2 |
User & Date: | js on 2023-03-26 14:28:52 |
Other Links: | manifest | tags |
Context
2023-04-02
| ||
10:49 | tests: Make Apple GCC 4.0.1 happy check-in: 316dca7bcd user: js tags: trunk | |
2023-03-26
| ||
14:28 | README.md: Fix iOS instructions check-in: 24a132495e user: js tags: trunk | |
13:31 | tests: Fix embedded files not being loaded on iOS check-in: 682547afc9 user: js tags: trunk | |
Changes
Modified README.md from [b12bc1a9ce] to [2681c29664].
︙ | ︙ | |||
165 166 167 168 169 170 171 | To build for macOS, just follow the <a href="#installation">regular instructions</a> above. To build for iOS, follow the regular instructions, but instead of `./configure` do something like this: | | | | | | | < | | | 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 | To build for macOS, just follow the <a href="#installation">regular instructions</a> above. To build for iOS, follow the regular instructions, but instead of `./configure` do something like this: $ clang="xcrun --sdk iphoneos clang" $ export OBJC="$clang -arch arm64e -arch arm64" $ export OBJCPP="$clang -arch arm64e -E" $ export IPHONEOS_DEPLOYMENT_TARGET="10.0" $ ./configure --prefix=/usr/local/ios --host=arm64-apple-darwin To build for the iOS simulator, follow the regular instructions, but instead of `./configure` use something like this: $ clang="xcrun --sdk iphonesimulator clang" $ export OBJC="$clang -arch $(uname -m)" $ export IPHONEOS_DEPLOYMENT_TARGET="10.0" $ ./configure --prefix=/usr/local/iossim --host=$(uname -m)-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 |
︙ | ︙ |