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

Enable MemberImportVisibility check on all targets #183

Merged
merged 2 commits into from
Dec 13, 2024

Conversation

rnro
Copy link
Contributor

@rnro rnro commented Dec 9, 2024

Enable MemberImportVisibility check on all targets. Use a standard string header and footer to bracket the new block for ease of updating in the future with scripts.

@rnro rnro added the semver/none No version bump required. label Dec 9, 2024
@rnro rnro force-pushed the enable_MemberImportVisibility_check branch from 07db031 to 2a777b8 Compare December 10, 2024 10:37
@rnro rnro changed the title Enable MemberImportVisibility check on 6.0+ pipelines Enable MemberImportVisibility check on all targets Dec 10, 2024
@rnro rnro force-pushed the enable_MemberImportVisibility_check branch from 2a777b8 to 4bf8a60 Compare December 10, 2024 10:44
@rnro rnro force-pushed the enable_MemberImportVisibility_check branch from 4bf8a60 to ab3a37a Compare December 11, 2024 09:20
@rnro rnro added 🔨 semver/patch No public API change. and removed semver/none No version bump required. labels Dec 11, 2024
@rnro rnro force-pushed the enable_MemberImportVisibility_check branch 3 times, most recently from af7113c to 56cbb35 Compare December 11, 2024 15:18
@rnro rnro force-pushed the enable_MemberImportVisibility_check branch from 56cbb35 to 65aba15 Compare December 11, 2024 15:22
@rnro rnro enabled auto-merge (squash) December 11, 2024 15:26
@rnro rnro merged commit 40b9442 into apple:main Dec 13, 2024
25 of 28 checks passed
@finagolfin
Copy link
Contributor

It appears this broke building with Swift 6.1 and 6.2 for linux and Android. It looks like choosing to import FoundationEssentials or Foundation in this pull was not the right approach, as replacingOccurrences(of:with:options:range:) is only available from the latter.

finagolfin added a commit to finagolfin/swift-android-sdk that referenced this pull request Dec 15, 2024
@Lukasa
Copy link
Contributor

Lukasa commented Dec 16, 2024

Interesting, seems like it must have moved?

@Lukasa
Copy link
Contributor

Lukasa commented Dec 16, 2024

See #185.

Lukasa added a commit that referenced this pull request Dec 16, 2024
Motivation:

It turns out that #183 broke the build on a number of platforms,
including Linux 6.1+, Android 6.1+, and on 6.0 macOS. We need to keep
things building.

Modifications:

Guard the import of CDispatch
Remove the use of replacingOccurrences

Result:

Better builds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants