After upgrading to Xcode 16, the UITests target started getting a compilation error: Missing required module 'Testing'
.
The problem affects only UITest. In Xcode 15 everything works fine.
Any ideas what can be done?
I tried to connect manually testing framework but the result is the same.
2
Answers
I have the same problem. I noticed one of external dependency
swift-snapshot-testing
use framework Testing. I haveswift-snapshot-testing
in local packageAppTestUtils
. TargetAppUITests
useAppTestUtils
in «Build phases» -> «Link binary with libraries» and was imported in several files. I remove allimport AppTestUtils
from files for UI tests and it worked. It’s strange, but it’s not necessary to removeAppTestUtils
package from theAppTestUtils
target, remove imports is enough.i had the same issue after upgrading to xcode 16. here are a few quick things you can try:
if the issue is still there let me know, I’ll see if I can do something.