0

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)
HangarRash
16.3k5 gold badges27 silver badges62 bronze badges
asked Sep 29 at 7:12
6
  • 1
    Is it Xcode 16 or Xcode 26? The versions you provided contradict each other. Commented Sep 29 at 7:47
  • Please provide enough code so others can better understand or reproduce the problem. Commented Sep 29 at 8:03
  • there is some discussions on the Swift forums on this subject: forums.swift.org/t/xcode-26-unable-to-find-module-dependency/… Commented Sep 29 at 8:10
  • True Xcode 16.0 have 16A242d build number and it's outdated already. I have no idea what are you using for building. Commented Sep 29 at 12:02
  • 1
    xcode 26.0.1 17A400 Commented Sep 29 at 12:51

1 Answer 1

-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.

answered Oct 7 at 2:31
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.