evgenyneu / keychain-swift

Helper functions for saving text in Keychain securely for iOS, OS X, tvOS and watchOS.
MIT License
2.85k stars 345 forks source link

Add support for BUILD_LIBRARY_FOR_DISTRIBUTION=YES #190

Open mikehouse opened 6 months ago

mikehouse commented 6 months ago

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.

I think this bug is a reason for this issue https://github.com/evgenyneu/keychain-swift/issues/183