amplitude / amplitude/experiment-ios-client
Add support for BUILD_LIBRARY_FOR_DISTRIBUTION=YES
- Vorherrschende Sprache
- Swift
- Sterne
- 5
- Forks
- 17
- Ø Merge
- 1 T. 9 Std.
- Gemergte PRs (30 T.)
- 3
Beschreibung
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 https://github.com/apple/swift/issues/56573. We fixed it by modifying private.swiftinterface file after it being built.
Xcode shows such error when open the project [experiment-ios-client](https://github.com/amplitude/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 https://github.com/apple/swift/issues/56573 for workarounds
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.