Skip to content

Fix duplicated category method issue #5859

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

Conversation

neonichu
Copy link
Contributor

@neonichu neonichu commented Nov 1, 2022

Currently, we get this linker warning:

ld: warning: method '-skipIfUnsupportedPlatformAndReturnError:' in category from /Users/neonacho/Projects/public/swift-package-manager/.build/arm64-apple-macosx/debug/PackageCollectionsTests.build/PackageCollectionsTests.swift.o conflicts with same method from another category

since we have two test modules defining the same category methods on XCTestCase. To avoid this, we can add a prefix to both implementations.

Currently, we get this linker warning:

```
ld: warning: method '-skipIfUnsupportedPlatformAndReturnError:' in category from /Users/neonacho/Projects/public/swift-package-manager/.build/arm64-apple-macosx/debug/PackageCollectionsTests.build/PackageCollectionsTests.swift.o conflicts with same method from another category
```

since we have two test modules defining the same category methods on `XCTestCase`. To avoid this, we can add a prefix to both implementations.
@neonichu neonichu requested a review from yim-lee November 1, 2022 19:42
@neonichu neonichu self-assigned this Nov 1, 2022
@neonichu
Copy link
Contributor Author

neonichu commented Nov 1, 2022

@swift-ci please smoke test

@neonichu neonichu merged commit de5608f into main Nov 1, 2022
@neonichu neonichu deleted the fix-skipIfUnsupportedPlatformAndReturnError-duplication branch November 1, 2022 22:26
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.

3 participants