Skip to content

Ensure the ObjectiveC module is visible to Discovery.swift #933

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

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

grynspan
Copy link
Contributor

@grynspan grynspan commented Jan 28, 2025

With recent work to rewrite our C++ code in Swift, we've wound up not including any Objective-C headers in _TestingInternals, but they are included transitively on some Apple platforms including macOS. Ensure the ObjectiveC module is included in Discovery.swift when available so that platforms that don't transitively include the libobjc headers can see (in particular) the objc_addLoadImageFunc() function.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

With recent work to rewrite our C++ code in Swift, we've wound up not including
any Objective-C headers in `_TestingInternals`, but they are included
transitively on some Apple platforms including macOS. Ensure the `ObjectiveC`
module is included in Discovery.swift when available so that platforms that
don't transitively include the libobjc headers can see (in particular) the
`objc_addLoadImageFunc()` function.
@grynspan grynspan added bug 🪲 Something isn't working darwin 🍎 macOS, iOS, watchOS, tvOS, and visionOS support workaround Workaround for an issue in another component (may need to revert later) labels Jan 28, 2025
@grynspan grynspan added this to the Swift 6.x milestone Jan 28, 2025
@grynspan grynspan self-assigned this Jan 28, 2025
@grynspan
Copy link
Contributor Author

@swift-ci test

@grynspan grynspan merged commit 88cb1a4 into main Jan 28, 2025
3 checks passed
@grynspan grynspan deleted the jgrynspan/import-objc-in-discovery branch January 28, 2025 18:13
@grynspan grynspan added the discovery 🔎 test content discovery label Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working darwin 🍎 macOS, iOS, watchOS, tvOS, and visionOS support discovery 🔎 test content discovery workaround Workaround for an issue in another component (may need to revert later)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants