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

Link XCTest weakly in RxTest to enable static linking #2587

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

mkj-is
Copy link
Contributor

@mkj-is mkj-is commented Mar 27, 2024

When static linking is enabled (usually using a CocoaPods plugin) the build might fail due to RxTest. We have encountered this on tvOS target using app extension.

Screenshot 2024-03-27 at 11 28 19

By enabling weak linking and correct linker flags for tests the pod will compile successfully. Inpired by solution in Nimble framework.

Copy link
Member

@freak4pc freak4pc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice workaround! Thanks :)

@freak4pc freak4pc merged commit 92c4754 into ReactiveX:main Mar 27, 2024
4 checks passed
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