File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ When complete, it will have produced `Bitcoin-Qt.dmg`.
14
14
15
15
## SDK Extraction
16
16
17
+ Our current macOS SDK (` macOSX10.14.sdk ` ) can be extracted from
18
+ [ Xcode_10.2.1.xip] ( https://download.developer.apple.com/Developer_Tools/Xcode_10.2.1/Xcode_10.2.1.xip ) .
19
+ An Apple ID is needed to download this.
20
+
17
21
` Xcode.app ` is packaged in a ` .xip ` archive.
18
22
This makes the SDK less-trivial to extract on non-macOS machines.
19
23
One approach (tested on Debian Buster) is outlined below:
@@ -38,14 +42,14 @@ xar -xf Xcode_10.2.1.xip -C .
38
42
39
43
./pbzx/pbzx -n Content | cpio -i
40
44
41
- find Xcode.app -type d -name MacOSX.sdk -execdir sh -c ' tar -c MacOSX.sdk/ | gzip -9n > / MacOSX10.14.sdk.tar.gz' \;
45
+ find Xcode.app -type d -name MacOSX.sdk -exec sh -c ' tar --transform="s/MacOSX.sdk/MacOSX10.14.sdk/" -c -C$(dirname {}) MacOSX.sdk/ | gzip -9n > MacOSX10.14.sdk.tar.gz' \;
42
46
```
43
47
44
48
on macOS the process is more straightforward:
45
49
46
50
``` bash
47
51
xip -x Xcode_10.2.1.xip
48
- tar -C Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/ -czf MacOSX10.14.sdk.tar.gz MacOSX.sdk
52
+ tar -s " /MacOSX.sdk/MacOSX10.14.sdk/ " - C Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/ -czf MacOSX10.14.sdk.tar.gz MacOSX.sdk
49
53
```
50
54
51
55
Our previously used macOS SDK (` MacOSX10.11.sdk ` ) can be extracted from
You can’t perform that action at this time.
0 commit comments