Brightify / Cuckoo

Boilerplate-free mocking framework for Swift!
MIT License
1.67k stars 174 forks source link

library not found for -lswiftXCTest in Xcode 12.5 #387

Closed soucolline closed 2 years ago

soucolline commented 3 years ago

Hello, since i've updated Xcode to 12.5 Cuckoo fails immediately with an error : library not found for -lswiftXCTest

Is there something to be done framework side or could it be a bug from Xcode ?

thatswinnie commented 3 years ago

Same here. The build flags need to be changed from 'OTHER_LDFLAGS' => '$(inherited) -weak-lswiftXCTest', to 'OTHER_LDFLAGS' => '$(inherited) -weak-lXCTestSwiftSupport', in the podspec according to this post: https://github.com/Quick/Nimble/issues/855

TadeasKriz commented 3 years ago

Thank you for looking into this! Do you want to submit a PR with a fix?

TadeasKriz commented 3 years ago

I'll go ahead and do the change myself and release a new version. We'll then have to check if the -weak-lXCTestSwiftSupport works with older Xcode versions.

thatswinnie commented 3 years ago

I just created the PR: https://github.com/Brightify/Cuckoo/pull/389

TadeasKriz commented 3 years ago

Oh, I see @thatswinnie already made a PR, that's wonderful!

TadeasKriz commented 3 years ago

Unfortunately I'm unable to release a new version on my machine (CocoaPods misconfigured on M1 Mac) and will have to wait for my colleague to release it tomorrow. In the meantime, please try using the master if you need it. And if some of you still have Xcode 12.4 (or older), please try the master branch with it to see if we'll need more changes to be backward compatible. Thanks a lot for your help!

soucolline commented 3 years ago

I've tested on 12.4 and 12.5 and it's working with the master branch 👍

thatswinnie commented 3 years ago

It's working for me as well on both Xcode versions (12.4 & 12.5). Thanks @TadeasKriz !

TadeasKriz commented 3 years ago

Thanks to you @thatswinnie for the PR!

soucolline commented 3 years ago

Everything is good for me since the last release, i'll let you guys close the issue if it's ok for you. Thank you all for your help 👍

sudheertreddy commented 3 years ago

What is the fix? I am still having this issue. My Xcode version is 12.5.