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

Revert "Replace calls to CFStringCreateWithCString with constant CFStrings" #4715

Merged
merged 1 commit into from
Mar 16, 2023

Conversation

compnerd
Copy link
Member

Reverts #4694

@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

Verified locally, this does repair the regression. CC: @jckarter

s10Foundation19_NSCFConstantStringCN => "type metadata for Foundation._NSCFConstantString"

_NSCFConstantString is defined as internal final: https://github.com/apple/swift-corelibs-foundation/blob/main/Sources/Foundation/NSCFString.swift#L62

This means that the type metadata for that is not exported, and there are now references to that in FoundationXML which cannot be fulfilled as the symbol is not visible outside of Foundation. This is happening as the CFXMLInterface.c file was modified to use CFSTR("") which generates the CFString literal which will require the reference to the type metadata. I don't think that this is worth making _NSCFConstantString public.

CC: @parkera

@compnerd compnerd merged commit 74226d1 into main Mar 16, 2023
@compnerd compnerd deleted the revert-4694-CFStringCreateWithCString branch March 16, 2023 23:20
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.

1 participant