amplitude / amplitude/analytics-connector-ios
Add support for BUILD_LIBRARY_FOR_DISTRIBUTION=YES
- 主要語言
- Swift
- 星號
- 6
- 分支
- 15
- 平均合併
- 1 天 8 小時
- 30 天內合併 PR
- 3
描述
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 [analytics-connector-ios](https://github.com/amplitude/analytics-connector-ios)
> Public class 'AnalyticsConnector.AnalyticsConnector' shadows module 'AnalyticsConnector', which may cause failures when importing 'AnalyticsConnector' or its clients in some configurations; please rename either the class 'AnalyticsConnector.AnalyticsConnector' or the module 'AnalyticsConnector', or see https://github.com/apple/swift/issues/56573 for workarounds
貢獻指南
評估
這個 Issue 還沒有評估資料。