Skip to content

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

Merged
grynspan merged 1 commit into
mainfrom
jgrynspan/import-objc-in-discovery
Jan 28, 2025
Merged

Ensure the ObjectiveC module is visible to Discovery.swift#933
grynspan merged 1 commit into
mainfrom
jgrynspan/import-objc-in-discovery

Conversation

@grynspan

@grynspan grynspan commented Jan 28, 2025

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor Author

@swift-ci test

@grynspan grynspan merged commit 88cb1a4 into main Jan 28, 2025
@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