Xcode 26: Unable to find module dependency

With Xcode 26 beta I get the following error in my project for all my local packages:

Unable to find module dependency

This happens only when I build for macOS. The project builds without any issues with Xcode 16.

Edit: Also does not build when building for a real iOS device.

Do you use CocoaPods? It seems CocoaPods doesn't work with Explicitly built modules which are turned on in Xcode 26. If you enable it in Xcode 16 then it also breaks there.

I use local SPM modules.

I guess try turning off explicitly built modules anyway?

I just tried it, same error.

I'm getting the same issue. Any resolution?

I haven't found a solution. However, creating a new project and adding all the files and settings worked.

I'm using XcodeGen to build my Xcode Project and a local Swift Package dependency.

2 things fixed this:

  • ONLY_ACTIVE_ARCH: YES
  • Fix all dependency warnings on Swift Package:

    is missing a dependency on because dependency scan of Swift module discovered a dependency on ...

Same issue, I got:

Unable to find module dependency: 'Testing'

When I add dependency Testing, the app crashes during launch with error : Library not loaded: @rpath/Testing.framework/Testing

Did anyone solve this issue? I have the same for one of my cocoa pods libraries (libsignal/swift at main · signalapp/libsignal · GitHub)