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

Resolved issues with add_system_framework and SDK version #786

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JavanPoirier
Copy link

Fixes #769

This is a WIP PR for issues around adding system frameworks. I would like some insight as to what version of XCode this applies to. Regardless I can confirm this works for anyone using 11 & 12.

Issue
When adding a framework, it is not made obvious that in order to have it point to the right SDK folder you must set the SDKROOT. This also comes with more issues. At least in XCode 11+ the frameworks live in a unspecified SDK version folder (ex: AppleTVOS.sdk) with versioned symbolically linked folders (ex: AppleTVOS14.0) pointing to the unspecified SDK folder. Therefore, the use of LAST_KNOWN_TVOS_SDK causes issues and links to an unknown path. Not to mention that the idea of these values being maintained is an issue of itself.

You can however set the SDK root and have the frameworks get added with the correct path as commented in #769. However, when adding a target it adds either Cocoa or Foundation automatically if not a static library, which can be unintended.

I am not sure of the best approach/solution to this problem, but this at least gives some insight into the issue. What I am most concerned about here is the breaking of support for older XCode versions. Should anyone be using 11+ you can at least take these changes and with the additional info in the README.md on building and installing locally, you should be able to get this working.

@JavanPoirier JavanPoirier changed the title Add framework fixes. Resolved issues with add_system_framework Sep 24, 2020
@JavanPoirier JavanPoirier changed the title Resolved issues with add_system_framework Resolved issues with add_system_framework and SDK version Sep 24, 2020
@JavanPoirier JavanPoirier changed the title Resolved issues with add_system_framework and SDK version Resolved issues with add_system_framework and SDK version Sep 24, 2020
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 this pull request may close these issues.

add_system_framework can not work
1 participant