Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

workaround Xcode 15.4 bug with swift build --arch x86_64 --arch arm64 #2945

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

weissi
Copy link
Member

@weissi weissi commented Oct 23, 2024

Motivation:

swift build --arch x64_64 --arch arm64 on at least Xcode 15.4 fails with

.build/checkouts/swift-nio/Sources/NIOCore/NIOScheduledCallback.swift:93:18: error: '_scheduleCallback' has a package access level but no -package-name was specified: .build/checkouts/swift-nio/Sources/NIOCore/NIOScheduledCallback.swift
    package func _scheduleCallback(
                 ^

That's clearly an Xcode bug but that needs a workaround.

Modifications:

  • Don't use the package modifier for now

Result:

SwiftNIO builds again.

@weissi weissi added the 🔨 semver/patch No public API change. label Oct 23, 2024
@weissi weissi requested review from FranzBusch and Lukasa October 23, 2024 20:44
@Lukasa Lukasa merged commit c4a6cde into apple:main Oct 24, 2024
42 of 43 checks passed
@weissi weissi deleted the jw-workaround branch October 25, 2024 12:02
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants