Skip to content

Commit 446e73c

Browse files
committed
build: use macOS 11 SDK (Xcode 12.2)
This should be sufficient to support building for Apple ARM when cross-compiling.
1 parent dd405ad commit 446e73c

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

.cirrus.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ task:
277277
container:
278278
image: ubuntu:focal
279279
env:
280-
MACOS_SDK: "Xcode-12.1-12A7403-extracted-SDK-with-libcxx-headers"
280+
MACOS_SDK: "Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers"
281281
<< : *CIRRUS_EPHEMERAL_WORKER_TEMPLATE_ENV
282282
FILE_ENV: "./ci/test/00_setup_env_mac.sh"
283283

ci/test/00_setup_env_mac.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ export CONTAINER_NAME=ci_macos_cross
1010
export DOCKER_NAME_TAG=ubuntu:20.04 # Check that Focal can cross-compile to macos
1111
export HOST=x86_64-apple-darwin
1212
export PACKAGES="cmake libz-dev libtinfo5 python3-setuptools xorriso"
13-
export XCODE_VERSION=12.1
14-
export XCODE_BUILD_ID=12A7403
13+
export XCODE_VERSION=12.2
14+
export XCODE_BUILD_ID=12B45b
1515
export RUN_UNIT_TESTS=false
1616
export RUN_FUNCTIONAL_TESTS=false
1717
export GOAL="deploy"

contrib/devtools/symbol-check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def check_MACHO_min_os(binary) -> bool:
229229
return False
230230

231231
def check_MACHO_sdk(binary) -> bool:
232-
if binary.build_version.sdk == [10, 15, 6]:
232+
if binary.build_version.sdk == [11, 0, 0]:
233233
return True
234234
return False
235235

contrib/guix/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ details.
249249
Set the path where _extracted_ SDKs can be found. This is passed through to
250250
the depends tree. Note that this is should be set to the _parent_ directory of
251251
the actual SDK (e.g. `SDK_PATH=$HOME/Downloads/macOS-SDKs` instead of
252-
`$HOME/Downloads/macOS-SDKs/Xcode-12.1-12A7403-extracted-SDK-with-libcxx-headers`).
252+
`$HOME/Downloads/macOS-SDKs/Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers`).
253253

254254
The path that this environment variable points to **must be a directory**, and
255255
**NOT a symlink to a directory**.

contrib/macdeploy/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ When complete, it will have produced `Bitcoin-Core.dmg`.
1313
### Step 1: Obtaining `Xcode.app`
1414

1515
Our current macOS SDK
16-
(`Xcode-12.1-12A7403-extracted-SDK-with-libcxx-headers.tar.gz`) can be
16+
(`Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers.tar.gz`) can be
1717
extracted from
18-
[Xcode_12.1.xip](https://download.developer.apple.com/Developer_Tools/Xcode_12.1/Xcode_12.1.xip).
18+
[Xcode_12.2.xip](https://download.developer.apple.com/Developer_Tools/Xcode_12.2/Xcode_12.2.xip).
1919
Alternatively, after logging in to your account go to 'Downloads', then 'More'
20-
and look for [`Xcode_12.1`](https://download.developer.apple.com/Developer_Tools/Xcode_12.1/Xcode_12.1.xip).
20+
and look for [`Xcode_12.2`](https://download.developer.apple.com/Developer_Tools/Xcode_12.2/Xcode_12.2.xip).
2121
An Apple ID and cookies enabled for the hostname are needed to download this.
22-
The `sha256sum` of the archive should be `612443b1894b39368a596ea1607f30cbb0481ad44d5e29c75edb71a6d2cf050f`.
22+
The `sha256sum` of the archive should be `28d352f8c14a43d9b8a082ac6338dc173cb153f964c6e8fb6ba389e5be528bd0`.
2323

2424
After Xcode version 7.x, Apple started shipping the `Xcode.app` in a `.xip`
2525
archive. This makes the SDK less-trivial to extract on non-macOS machines. One
@@ -30,25 +30,25 @@ approach (tested on Debian Buster) is outlined below:
3030
apt install cpio
3131
git clone https://github.com/bitcoin-core/apple-sdk-tools.git
3232

33-
# Unpack Xcode_12.1.xip and place the resulting Xcode.app in your current
33+
# Unpack Xcode_12.2.xip and place the resulting Xcode.app in your current
3434
# working directory
35-
python3 apple-sdk-tools/extract_xcode.py -f Xcode_12.1.xip | cpio -d -i
35+
python3 apple-sdk-tools/extract_xcode.py -f Xcode_12.2.xip | cpio -d -i
3636
```
3737

3838
On macOS the process is more straightforward:
3939

4040
```bash
41-
xip -x Xcode_12.1.xip
41+
xip -x Xcode_12.2.xip
4242
```
4343

44-
### Step 2: Generating `Xcode-12.1-12A7403-extracted-SDK-with-libcxx-headers.tar.gz` from `Xcode.app`
44+
### Step 2: Generating `Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers.tar.gz` from `Xcode.app`
4545

46-
To generate `Xcode-12.1-12A7403-extracted-SDK-with-libcxx-headers.tar.gz`, run
46+
To generate `Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers.tar.gz`, run
4747
the script [`gen-sdk`](./gen-sdk) with the path to `Xcode.app` (extracted in the
4848
previous stage) as the first argument.
4949

5050
```bash
51-
# Generate a Xcode-12.1-12A7403-extracted-SDK-with-libcxx-headers.tar.gz from
51+
# Generate a Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers.tar.gz from
5252
# the supplied Xcode.app
5353
./contrib/macdeploy/gen-sdk '/path/to/Xcode.app'
5454
```

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.15
2-
OSX_SDK_VERSION=10.15.6
3-
XCODE_VERSION=12.1
4-
XCODE_BUILD_ID=12A7403
2+
OSX_SDK_VERSION=11.0
3+
XCODE_VERSION=12.2
4+
XCODE_BUILD_ID=12B45b
55
LD64_VERSION=609
66

77
OSX_SDK=$(SDK_PATH)/Xcode-$(XCODE_VERSION)-$(XCODE_BUILD_ID)-extracted-SDK-with-libcxx-headers

0 commit comments

Comments
 (0)