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

fix build with Xcode 16 by disabling InternalImportsByDefault #115

Conversation

diederich
Copy link

InternalImportsByDefault makes all imports internal by default. This means that none of those imports can be used in public interfaces.
Currently this repo is using lots of internal imports and it seems like the feature is ignored in Xcode 15. Building on Xcode 16 breaks as expected.

I'm not 100% clear on how the transition to this feature will work, and if the feature can only be enabled once everyone's building with Xcode 16?

Disabling the feature now and adding a comment to make builds work with Xcode 16 (beta 3)

`InternalImportsByDefault` makes all imports `internal` by default.
This means that none of those imports can be used in public interfaces.
Currently this repo _is_ using lots of `internal imports` and it seems
like the feature is ignored in Xcode 15. On Xcode 16 this breaks expectingly.

I'm not 100% clear on how the transition to this feature will work, and
if the feature can only be enabled once everyone's building with Xcode 16?

Disabling the feature now and adding a comment to get the Xcode 16 build
to work.
@heckj
Copy link
Collaborator

heckj commented Jul 23, 2024

I've opened #116 as an alternative, because I would like to track this through to a fully Swift6 compliant mode. If there's something in there that breaks a build with Xcode 16, please try it out and give me feedback on the PR

@heckj heckj closed this Jul 23, 2024
@diederich
Copy link
Author

I've opened #116 as an alternative, because I would like to track this through to a fully Swift6 compliant mode. If there's something in there that breaks a build with Xcode 16, please try it out and give me feedback on the PR

Ah, sweet! I wasn't sure if the public specifier works in pre-swift6 already. But that's much better that way if it does! Thank you!

@diederich diederich deleted the bugfix/fix-xcode16-compilation branch July 29, 2024 19:27
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.

2 participants