jmjauer
(Johannes Auer)
June 17, 2025, 1:08pm
1
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.
Jon889
(Jonathan Bailey)
June 20, 2025, 8:46am
3
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.
Jon889
(Jonathan Bailey)
June 20, 2025, 9:24am
5
I guess try turning off explicitly built modules anyway?
jmjauer
(Johannes Auer)
June 21, 2025, 2:35pm
6
I just tried it, same error.
leogdion
(Leo G Dion)
July 3, 2025, 7:43pm
7
I'm getting the same issue. Any resolution?
jmjauer
(Johannes Auer)
July 4, 2025, 8:26am
8
I haven't found a solution. However, creating a new project and adding all the files and settings worked.
leogdion
(Leo G Dion)
July 4, 2025, 2:44pm
9
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 ...
taoabc
(Hitao)
July 7, 2025, 8:12am
10
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 )