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

Add support for BUILD_LIBRARY_FOR_DISTRIBUTION=YES #55

Open
mikehouse opened this issue May 9, 2024 · 0 comments
Open

Add support for BUILD_LIBRARY_FOR_DISTRIBUTION=YES #55

mikehouse opened this issue May 9, 2024 · 0 comments

Comments

@mikehouse
Copy link

Hi. We've built the library with one version of swift compiler (Xcode 15.1/15.2) using BUILD_LIBRARY_FOR_DISTRIBUTION=YES and linked the library to a project that uses Xcode 15.3. After adding the library the project cannot be compiled anymore. The reason is names collision because of Swift compiler bug swiftlang/swift#56573. We fixed it by modifying private.swiftinterface file after it being built.
Xcode shows such error when open the project experiment-ios-client

Public class 'Experiment.Experiment' shadows module 'Experiment', which may cause failures when importing 'Experiment' or its clients in some configurations; please rename either the class 'Experiment.Experiment' or the module 'Experiment', or see swiftlang/swift#56573 for workarounds

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

No branches or pull requests

1 participant