Swinject icon indicating copy to clipboard operation
Swinject copied to clipboard

Swinject-Dynamic: "No such file or directory"

Open dpaulino opened this issue 1 year ago • 8 comments

image

I'm hitting the above error in Xcode when adding swinject to my iOS project. This is preventing me from building my app and testing on a simulator.

Looking at the directory mentioned in the error message, the target file it's looking for is indeed missing.

image

Am I doing something wrong in setting up swinject?

dpaulino avatar Aug 06 '24 06:08 dpaulino

Same issue @dpaulino have you found any solution ?

@yoichitgy

Hetu-Jotaniya24 avatar Sep 12 '24 05:09 Hetu-Jotaniya24

same issue

Sithira avatar Oct 02 '24 02:10 Sithira

Same issue @dpaulino have you found any solution ?

@yoichitgy

no I haven't :(

dpaulino avatar Oct 02 '24 06:10 dpaulino

a workaround : just add "swinject static lib" to your target instead both swinject and swiinject-dynamic

taylorgwei avatar Oct 15 '24 23:10 taylorgwei

If you're using both Swinject and SwinjectAutoregistration you will have to remove from both the Dynamic version from frameworks

So you will go from this: Screenshot 2024-12-03 at 12 27 08

To this: Screenshot 2024-12-03 at 12 25 44

w-i-l avatar Dec 03 '24 10:12 w-i-l

Hi! In my project I wasn't specifically using the swinject-dynamic (import swinject-dynamic) , so I removed the Swinject-dynamic from this section in build phases

Captura de Tela 2024-12-08 às 05 14 37

after that I import the package dependency locally, downloading the package and importing it into my project, so I remove that part: Captura de Tela 2024-12-08 às 05 17 29

and finally my project is build

italomonte avatar Dec 08 '24 09:12 italomonte

Is there a more permanent solution for this or do I need to keep removing Swinject-Dynamic every time I relaunch the project?

nichojo89 avatar Dec 31 '24 03:12 nichojo89

@nichojo89 https://github.com/Swinject/Swinject/pull/583

0xLucasMarcal avatar May 18 '25 14:05 0xLucasMarcal