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

[Source compatibility suite] R.swift failing to build - error: cannot find 'CGFont' in scope #65204

Open
justice-adams-apple opened this issue Apr 14, 2023 · 1 comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself source compatibility suite Flag: An issue that surfaced in the source compatibility suite swift 5.9 type checker Area → compiler: Semantic analysis unexpected error Bug: Unexpected error

Comments

@justice-adams-apple
Copy link
Contributor

R.swift is failing to build with the following error

swift-source-compat-suite/project_cache/R.swift/Sources/RswiftCore/ResourceTypes/Font.swift:27:16: error: cannot find 'CGFont' in scope
    let font = CGFont(dataProvider)

Expected behavior
Expect the project to build correctly

Environment (please fill out the following information)
https://ci.swift.org/job/swift-main-source-compat-suite/393/

Additional context
Apple Swift version 5.9-dev (LLVM 65f254710438d81, Swift b0c990ade66ff90)

I was able to reproduce this using mac-cain13/R.swift@f967585 and xcode 14.2 with the following command

swift build --disable-sandbox --package-path source-compat/project_cache/R.swift --verbose --configuration release -Xswiftc -swift-version -Xswiftc 5.0
@justice-adams-apple justice-adams-apple added bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels labels Apr 14, 2023
@justice-adams-apple
Copy link
Contributor Author

This is effecting main, 5.9, and 5.8

@AnthonyLatsis AnthonyLatsis added source compatibility suite Flag: An issue that surfaced in the source compatibility suite unexpected error Bug: Unexpected error swift 5.9 type checker Area → compiler: Semantic analysis compiler The Swift compiler in itself and removed triage needed This issue needs more specific labels labels Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself source compatibility suite Flag: An issue that surfaced in the source compatibility suite swift 5.9 type checker Area → compiler: Semantic analysis unexpected error Bug: Unexpected error
Projects
None yet
Development

No branches or pull requests

2 participants