Skip to content

Commit 813a552

Browse files
theunidongcarl
authored andcommitted
macos: Bump to xcode 11.3.1 and 10.15 SDK
This gets us a newer SDK with c++17 support and retains 10.12 back-compat. Co-authored-by: Carl Dong <[email protected]>
1 parent ee7085f commit 813a552

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

.github/workflows/build-and-test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ jobs:
170170
os: ubuntu-18.04
171171
host: x86_64-apple-darwin16
172172
apt_get: cmake imagemagick libcap-dev librsvg2-bin libz-dev libbz2-dev libtiff-tools python3-dev python3-setuptools
173-
XCODE_VERSION: 10.2.1
174-
XCODE_BUILD_ID: 10E1001
173+
XCODE_VERSION: 11.3.1
174+
XCODE_BUILD_ID: 11C505
175175

176176
steps:
177177
- name: Get Source
@@ -323,8 +323,8 @@ jobs:
323323
os: ubuntu-18.04
324324
host: x86_64-apple-darwin16
325325
apt_get: cmake imagemagick libcap-dev librsvg2-bin libz-dev libbz2-dev libtiff-tools python3-dev python3-setuptools
326-
XCODE_VERSION: 10.2.1
327-
XCODE_BUILD_ID: 10E1001
326+
XCODE_VERSION: 11.3.1
327+
XCODE_BUILD_ID: 11C505
328328
unit_tests: false
329329
functional_tests: false
330330
goal: deploy

contrib/gitian-build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ def main():
334334
args.macos = 'm' in args.os
335335

336336
# Disable for MacOS if no SDK found
337-
if args.macos and not os.path.isfile('gitian-builder/inputs/Xcode-10.2.1-10E1001-extracted-SDK-with-libcxx-headers.tar.gz'):
337+
if args.macos and not os.path.isfile('gitian-builder/inputs/Xcode-11.3.1-11C505-extracted-SDK-with-libcxx-headers.tar.gz'):
338338
print('Cannot build for MacOS, SDK does not exist. Will build for other OSes')
339339
args.macos = False
340340

contrib/gitian-descriptors/gitian-osx.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ remotes:
3232
- "url": "https://github.com/pivx-project/pivx.git"
3333
"dir": "pivx"
3434
files:
35-
- "Xcode-10.2.1-10E1001-extracted-SDK-with-libcxx-headers.tar.gz"
35+
- "Xcode-11.3.1-11C505-extracted-SDK-with-libcxx-headers.tar.gz"
3636
script: |
3737
set -e -o pipefail
3838
@@ -91,7 +91,7 @@ script: |
9191
BASEPREFIX=`pwd`/depends
9292
9393
mkdir -p ${BASEPREFIX}/SDKs
94-
tar -C ${BASEPREFIX}/SDKs -xf ${BUILD_DIR}/Xcode-10.2.1-10E1001-extracted-SDK-with-libcxx-headers.tar.gz
94+
tar -C ${BASEPREFIX}/SDKs -xf ${BUILD_DIR}/Xcode-11.3.1-11C505-extracted-SDK-with-libcxx-headers.tar.gz
9595
9696
# Build dependencies for each host
9797
for i in $HOSTS; do

contrib/macdeploy/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ When complete, it will have produced `PIVX-Qt.dmg`.
1717
### Step 1: Obtaining `Xcode.app`
1818

1919
Our current macOS SDK
20-
(`Xcode-10.2.1-10E1001-extracted-SDK-with-libcxx-headers.tar.gz`) can be
20+
(`Xcode-11.3.1-11C505-extracted-SDK-with-libcxx-headers.tar.gz`) can be
2121
extracted from
22-
[Xcode_10.2.1.xip](https://download.developer.apple.com/Developer_Tools/Xcode_10.2.1/Xcode_10.2.1.xip).
22+
[Xcode_11.3.1.xip](https://download.developer.apple.com/Developer_Tools/Xcode_11.3.1/Xcode_11.3.1.xip).
2323
An Apple ID is needed to download this.
2424

2525
After Xcode version 7.x, Apple started shipping the `Xcode.app` in a `.xip`
@@ -31,25 +31,25 @@ approach (tested on Debian Buster) is outlined below:
3131
apt install cpio
3232
git clone https://github.com/bitcoin-core/apple-sdk-tools.git
3333

34-
# Unpack Xcode_10.2.1.xip and place the resulting Xcode.app in your current
34+
# Unpack Xcode_11.3.1.xip and place the resulting Xcode.app in your current
3535
# working directory
36-
python3 apple-sdk-tools/extract_xcode.py -f Xcode_10.2.1.xip | cpio -d -i
36+
python3 apple-sdk-tools/extract_xcode.py -f Xcode_11.3.1.xip | cpio -d -i
3737
```
3838

3939
On macOS the process is more straightforward:
4040

4141
```bash
42-
xip -x Xcode_10.2.1.xip
42+
xip -x Xcode_11.3.1.xip
4343
```
4444

45-
### Step 2: Generating `Xcode-10.2.1-10E1001-extracted-SDK-with-libcxx-headers.tar.gz` from `Xcode.app`
45+
### Step 2: Generating `Xcode-11.3.1-11C505-extracted-SDK-with-libcxx-headers.tar.gz` from `Xcode.app`
4646

47-
To generate `Xcode-10.2.1-10E1001-extracted-SDK-with-libcxx-headers.tar.gz`, run
47+
To generate `Xcode-11.3.1-11C505-extracted-SDK-with-libcxx-headers.tar.gz`, run
4848
the script [`gen-sdk`](./gen-sdk) with the path to `Xcode.app` (extracted in the
4949
previous stage) as the first argument.
5050

5151
```bash
52-
# Generate a Xcode-10.2.1-10E1001-extracted-SDK-with-libcxx-headers.tar.gz from
52+
# Generate a Xcode-11.3.1-11C505-extracted-SDK-with-libcxx-headers.tar.gz from
5353
# the supplied Xcode.app
5454
./contrib/macdeploy/gen-sdk '/path/to/Xcode.app'
5555
```
@@ -80,7 +80,7 @@ and its `libLTO.so` rather than those from `llvmgcc`, as it was originally done
8080

8181
To complicate things further, all builds must target an Apple SDK. These SDKs are free to
8282
download, but not redistributable. To obtain it, register for an Apple Developer Account,
83-
then download [Xcode_10.2.1](https://download.developer.apple.com/Developer_Tools/Xcode_10.2.1/Xcode_10.2.1.xip).
83+
then download [Xcode_11.3.1](https://download.developer.apple.com/Developer_Tools/Xcode_11.3.1/Xcode_11.3.1.xip).
8484

8585
This file is many gigabytes in size, but most (but not all) of what we need is
8686
contained only in a single directory:

depends/hosts/darwin.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
OSX_MIN_VERSION=10.12
2-
OSX_SDK_VERSION=10.14.4
3-
XCODE_VERSION=10.2.1
4-
XCODE_BUILD_ID=10E1001
2+
OSX_SDK_VERSION=10.15.1
3+
XCODE_VERSION=11.3.1
4+
XCODE_BUILD_ID=11C505
55
OSX_SDK=$(SDK_PATH)/Xcode-$(XCODE_VERSION)-$(XCODE_BUILD_ID)-extracted-SDK-with-libcxx-headers
66
darwin_CC=clang -target $(host) -mmacosx-version-min=$(OSX_MIN_VERSION) --sysroot $(OSX_SDK)
77
darwin_CXX=clang++ -target $(host) -mmacosx-version-min=$(OSX_MIN_VERSION) --sysroot $(OSX_SDK) -stdlib=libc++

0 commit comments

Comments
 (0)