hmlongco / Factory

A new approach to Container-Based Dependency Injection for Swift and SwiftUI.
MIT License
1.7k stars 107 forks source link

Xcode compile error in `FactoryKey.init(type:key:)` due to use of @inlinable #184

Closed FKREISE closed 3 months ago

FKREISE commented 5 months ago

Using Factory version 2.3.1 and Xcode 15.2. produces a compiler error. Cause of the error is probably the use of the build setting "BUILD_LIBRARY_FOR_DISTRIBUTION".

Screenshot 2024-02-05 at 7 03 21 PM

It might be related to the use of @inlinable, see this discussion: https://github.com/grpc/grpc-swift/issues/1063#issuecomment-785727051

hmlongco commented 5 months ago

There's a new branch, "key", which has a change which may fix this. Can you pull it and check?

hmlongco commented 4 months ago

Updated converting key to an internal type. Please try branch again.

hmlongco commented 3 months ago

Inlines removed and key internal in 2.3.2