You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So let's say I have a project that has this modularized workspace setup.
Main App Project which has dependency to StaticLib1 and FeatureA.framework FeatureA.framework is a dynamic framework that also has dependency to StaticLib1 StaticLib1 is a static lib that is linked statically to FeatureA.framework and MainApp
StaticLib1 has a public protocol SomeProtocol
MainApp act as composition root to register SomeProtocol.self into a global container and provide the detail factory process in the resolve closure.
When calling resolve SomeProtocol.self from inside of the Main app. The factory is found without problem.
When calling resolve SomeProtocol.self from inside FeatureA.framework it fails to resolve since apparently it sees the key of SomeProtocol.self that is registered on the Main App is different with SomeProtocol.self that FeatureA.framework is trying to resolve.
I wonder if this is expected due to the nature of StaticLib1 is linked statically to both the MainApp and FeatureA.framework? If yes is there a workaround to use Swinject with this kind of project setup?
Version Swinject used: 2.8.1
Thank you in advance!
The text was updated successfully, but these errors were encountered:
Here a sample workspace that mirror the situation, pardon all the mess (default, iOS 15.4, brokenload xib from FeatureA.framework) since this is just a quick made project with all default configuration in
As titled,
So let's say I have a project that has this modularized workspace setup.
Main App Project which has dependency to
StaticLib1
andFeatureA.framework
FeatureA.framework
is a dynamic framework that also has dependency toStaticLib1
StaticLib1
is a static lib that is linked statically toFeatureA.framework
and MainAppStaticLib1
has a public protocolSomeProtocol
MainApp act as composition root to register
SomeProtocol.self
into a global container and provide the detail factory process in the resolve closure.When calling resolve
SomeProtocol.self
from inside of the Main app. The factory is found without problem.When calling resolve
SomeProtocol.self
from insideFeatureA.framework
it fails to resolve since apparently it sees the key ofSomeProtocol.self
that is registered on the Main App is different withSomeProtocol.self
thatFeatureA.framework
is trying to resolve.I wonder if this is expected due to the nature of StaticLib1 is linked statically to both the MainApp and
FeatureA.framework
? If yes is there a workaround to use Swinject with this kind of project setup?Version Swinject used: 2.8.1
Thank you in advance!
The text was updated successfully, but these errors were encountered: