-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xcode image or at least Dockerfile #16
Comments
Aaaaargh... We're almost there FROM ghcr.io/macoscontainers/macos-jail/ventura:latest
RUN curl -L -4 https://storage.googleapis.com/xcodes-cache/Xcode_14.3.1.xip -o /xcode.xip
RUN curl -L https://github.com/XcodesOrg/xcodes/releases/download/1.4.1/xcodes.zip -o /xcodes.zip && \
mkdir -p /usr/local/bin && \
unzip /xcodes.zip -d /usr/local/bin && \
rm /xcodes.zip && \
codesign --remove-signature /usr/local/bin/xcodes
RUN mkdir -m 775 /Applications
RUN xcodes install 14.3.1 --experimental-unxip --path /xcode.xip --select
|
Thoughts: do I actually need UPD: weird.
|
A better attempt: FROM ghcr.io/macoscontainers/macos-jail/ventura:latest
RUN curl -L -4 https://storage.googleapis.com/xcodes-cache/Xcode_14.3.1.xip -o /xcode.xip
RUN mkdir -p /usr/local/bin && \
curl -L https://github.com/saagarjha/unxip/releases/download/v2.2/unxip -o /usr/local/bin/unxip && \
codesign --remove-signature /usr/local/bin/unxip && \
chmod +x /usr/local/bin/unxip && \
mkdir -p /Applications /Library/Preferences /var/db && \
unxip /xcode.xip /Applications/ && \
rm /xcode.xip && \
xcode-select -s /Applications/Xcode.app/Contents/Developer
RUN xcodebuild -license accept Fails on |
I was able to get further on this, by basing the image of the progress in #22 and in addition creating the folder /Library/Preferences the The next issue now is that there are missing frameworks, supposedly to be installed by This however fails:
Looking up the error code -67674 reveals this as a signature verification error on the package. So we are possibly missing a signature store of some kind. Note that adding |
Creating the folders After copying the contents of my host mac /private/var/db/mds/system/ to the container it gets even further, but it seems to fail to contact the trustd xpc service to verify the certificate. Not sure how to proceed from that. |
Would there not be a way to copy over the entire Xcode installation from the host Mac into the container (and then somehow link all the components like clang, git, etc)? |
If there’s any way I can donate to help move this along, I’d be glad to know. We’ve been trying to get build isolation using Tart, but due to some macOS bugs in virtiofs it fails for disk-heavy workloads such as Unreal Engine builds. Being able to do that with docker would be a game changer for us. |
@jlsalmon are you referring to bugs in mounted folders? Tart recently started supporting mounting block devices which don't use VirtioFS all together. Might worth checking it out and we'll be glad to help. |
It should be something like
But
xcodes install
crashes currently.Note to myself: I forgot why I do
codesign --remove-signature /usr/bin/xcodes
. Maybe I shouldn't? Or it should be put in a different directory where macOS doesn't care about signing?The text was updated successfully, but these errors were encountered: