-
Notifications
You must be signed in to change notification settings - Fork 9
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
xcodebuild system version check #8
Comments
Ok, here is a patch. UPD: VCS problem seems to be relevant to lack of necessary symbols (rebound by XPF) in com.apple.dt.Xcode.sourcecontrol.* XPC services. UPD: Indeed, dyld ignores DYLD_* envvars for subrpocesses (restriction by private entitlements?). Also, the image name check should be extended against a list of images instead... |
Just some notes:
Ultimately, I think Xcode 7 support might require graduating from DYLD_* insertion and actually performing runtime code injection from a privileged position. |
Thank you for your reply! |
Huh, neat. I've been playing around with kexts to hook exec/spawn* -- I'll have to look at Substitute in more detail.
I've had similar thoughts. We're not very far away from having a full-fledged dyld replacement, and if we can do arbitrary binary injection/patching:
|
I have only tested it for Xc7, but it seems like xcodebuild checks
DVTMinimumSystemVersion
atxcodebuild:10000142c (com.apple.xbs/Sources/IDETools/IDETools-8027/xcodebuild/xcodebuild_main.m:checkMinimumOSVersion)
. The version itself is stored in info.plist in __TEXT of xcodebuild binary.If the check fails, then Xcode fails to install developer tools, and so it won't let user in past the license view.
As a workaround, I suggest implementing something like xpf_patch_info_dictionary, but this time for that nasty key :)
(This is, of course, only a peak of the iceberg. I am still working on making it actually run xc7b2 and will report when done...)
The text was updated successfully, but these errors were encountered: