Skip to content
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

DTXcodeBuild is the wrong value to use #1

Closed
davedelong opened this issue Mar 9, 2024 · 2 comments · Fixed by #2
Closed

DTXcodeBuild is the wrong value to use #1

davedelong opened this issue Mar 9, 2024 · 2 comments · Fixed by #2

Comments

@davedelong
Copy link

davedelong commented Mar 9, 2024

👋 Just watched your video on modding Xcode, where you talk about using DTXcodeBuild for determining plugin compatibility.

DTXcodeBuild does not describe the build version of that Xcode. It describes the version of Xcode used to compile that app. All compiled applications have a DTXcodeBuild value in their Info.plist.

If you want Xcode's actual build value, that's in its Contents/version.plist under the ProductBuildVersion key. (This explains the discrepancy between the value in the Info.plist and the value on xcodereleases.com)

@davedelong
Copy link
Author

Hopper seems to think you can get this value from -[NSProcessInfo xcodeProductBuildVersion], courtesy the DevToolsSupport framework.

@brycebostwick
Copy link
Owner

🤦 Hi Dave! Thanks for reporting this, I should have recognized the key — serves me right for rushing to support Xcode 15.3 midway through this project.

Just added #2 to support ProductBuildVersion. Great tip on xcodeProductBuildVersion too — thanks for digging it up! Appreciate both the initial report and direction — thank you again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants