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

sparse SDK warning for 10.1 to 10.3 #42

Open
joevt opened this issue Mar 21, 2022 · 0 comments
Open

sparse SDK warning for 10.1 to 10.3 #42

joevt opened this issue Mar 21, 2022 · 0 comments

Comments

@joevt
Copy link

joevt commented Mar 21, 2022

I added all the SDKs to Xcode (in Monterey) using symbolic links like this:

IFS=$'\n'
for thesdk in $(find /Volumes/Devs/Developer/MacOSX-SDKs -name '*.sdk' -maxdepth 1); do
	echo sudo ln -s "$thesdk" /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/$(basename "$thesdk")
done

And I edited /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Info.plist to have MinimumSDKVersion set to 10.0.

Then I opened an Xcode project. I got these warnings:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.1.5.sdk:1:1: warning: setting 'MACOSX_DEPLOYMENT_TARGET' is not allowed in sparse SDK
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.1.5.sdk:1:1: warning: setting 'PLATFORM_NAME' is not allowed in sparse SDK
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.2.8.sdk:1:1: warning: setting 'MACOSX_DEPLOYMENT_TARGET' is not allowed in sparse SDK
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.2.8.sdk:1:1: warning: setting 'PLATFORM_NAME' is not allowed in sparse SDK
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.3.0.sdk:1:1: warning: setting 'MACOSX_DEPLOYMENT_TARGET' is not allowed in sparse SDK
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.3.0.sdk:1:1: warning: setting 'PLATFORM_NAME' is not allowed in sparse SDK

I understand that I probably won't be able to use those early SDKs with Monterey or that I probably won't ever want to, but I think we can at least fix them so that they don't give that warning. What I did was add the following line to each SDKSettings.plist:
isBaseSDK = YES;

I am guessing that sparse SDKs did not exist before 10.4 (or 10.3.9)?

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

No branches or pull requests

1 participant