Comments (13)
juste fixed it. re-download and execute XcodeLegacy install, it should recognize the old packages again
from xcodelegacy.
My findings were similar. The script would have to supply a tool that can decode pbzx streams, since macOS doesn't provide one.
Besides pbzx.c, another option is parse_pbzx2.py, which works with the system's Python. This successfully extracted the entire archive:
xar -xf Xcode8.3.3.xip
python parse_pbzx2.py Content
cpio -idm --quiet -F Content.part00.cpio.xz
Ideally the script would extract just the path we need, and both cpio
and tar
will do so if given a path as an argument. But in this case, both tools throw lots of random "Can't create [file]" errors without giving a reason why, and the resulting SDK has missing files. If no argument is given, they'll still throw the same errors, but (on my machine) the resulting SDK within the new Xcode.app is complete, according to a comparison with a known-good copy using FileMerge.
from xcodelegacy.
Solved it: as confirmed by ls -i
, it turns out that Apple hard-links common files between everything in the Platforms folder, so the script needs to extract it entirely to get a complete SDK. Both of these commands work despite their errors, although the second throws far fewer of them:
cpio -idm --quiet -F Content.part00.cpio.xz ./Xcode.app/Contents/Developer/Platforms
xz --decompress --stdout Content.part00.cpio.xz | pax -r ./Xcode.app/Contents/Developer/Platforms
(see also this Q&A)
from xcodelegacy.
This version of parse_pbzx.py supports decompression and pipes, allowing the final command sequence to be:
xar -xf Xcode8.3.3.xip
./parse_pbzx.py Content | pax -r ./Xcode.app/Contents/Developer/Platforms 2>/dev/null
resulting in a 9GB package from which the SDK can be extracted. Since it takes a while to perform the extraction, even on a modern SSD-equipped system, it might be smart to wrap the command in a function that provides a progress bar or spinner in the terminal output.
from xcodelegacy.
Any further progress or comment on this issue, or is this a showstopper?
from xcodelegacy.
You can still download it from https://github.com/phracker/MacOSX-SDKs/releases .
Sorry, I don't have much time to work on this.
from xcodelegacy.
I've had success elsewhere with live-downloading-and-patching another tool within a script to accomplish a similar task. I can attempt to put a PR together.
from xcodelegacy.
@devernay I can manually download the SDK, no problem. I guess I'm questioning what to do WITH the SDK once I have it...will the existing script patch everything in Xcode 9.x with the exception of the 10.12 SDK and I just copy that into Xcode after patching?
from xcodelegacy.
use the latest github version. 6956e79 installs the file at the right place
from xcodelegacy.
temporary fix in XcodeLegacy 2.1
from xcodelegacy.
Evidently you also need to re-download 10.7-10.11 from the same github link above - the current XcodeLegacy.sh won't recognize the SDKs already extracted from older Xcode versions (due to naming, likely). Was that intended?
from xcodelegacy.
no it wasn't, it should check for both
from xcodelegacy.
I re-ran the -buildpackages section, and the XcodeSDK* files are there, but -install would not use them. Downloading the SDKs from the github site and placing the .xz files in the same folder did work, however.
from xcodelegacy.
Related Issues (20)
- Symlink to C compiler (cc) HOT 8
- After installing packages with latest XcodeLegacy, GNU Ada fails to build projects using gprbuild HOT 12
- 10.11 SDK on Xcode 8.3.3: "SDK not found" HOT 5
- Latest 2.1 missing uninstall for 10.12 SDK
- Feedback HOT 2
- Bad Info.plist created for Xcode 10.0 HOT 8
- Compiler + Xcode 10.1 Error HOT 4
- Option to provide the app path HOT 2
- libLTO detect under Xcode 9
- "No value to remove at key path MinimumSDKVersion"
- "ld: warning: bad symbol action" HOT 2
- Unable to extract 10.12SDK from Xcode8.3.3.xip HOT 3
- Can't compile after running xcode legacy (XCode 10 or 11) HOT 1
- Instructions no longer work on macOS 11.1: "mkdir: /Developer: Read-only file system" HOT 4
- Is it possible to add a Xcode 3.2 from 10.6 PPC? HOT 1
- PPC architecture and old SDKs are unavailable in Xcode 12.4 GUI HOT 2
- as and ld Intel-only in ppc and ppc64 libexec? HOT 2
- setting `MACOSX_DEPLOYMENT_TARGET` does it require the sdk?
- Found XCode >= 4.3 ... Error could not find Xcode >= 4.3 in /Applications, cannot install HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xcodelegacy.