I recently updated to Xcode 26.0.1.
When I try to add Alamofire (or any other library) via Swift Package Manager in a new test project, the build fails with this error:
No such file or directory: '/Users/.../DerivedData/TestSPM-xxx/Build/Products/Debug-iphonesimulator/PackageFrameworks/AlamofireDynamic.framework/AlamofireDynamic'
Steps I tried:
- Deleted DerivedData
- Cleaned build folder
- Reset package caches & resolved versions
- Tried different simulator targets
But the error persists.
This only happens with Xcode 26.0.1. With previous versions (15.x) the same steps worked fine.
Is this a known bug in Xcode 26’s SPM integration?
What is the recommended workaround (e.g. static linking, "Do Not Embed", or downgrading to 15.4)?
Environment:
- macOS [Sequoia 15.6]
- Xcode 26.0.1
- Swift 6.0 (default in Xcode 26)
1 Answer 1
You most likely don't need to use AlamofireDynamic, that target only exists if you need to force dynamic linking when Xcode can't figure it out automatically. Instead, you should only link the Alamofire target, and make sure you're not trying to link both.
Comments
Explore related questions
See similar questions with these tags.
16A242d
build number and it's outdated already. I have no idea what are you using for building.