skip to Main Content

I am receiving this error when trying to build my project on a real device, when I build it on a simulator it works without any issue.

No such file or directory: '/Xcode/DerivedData/ProjectName/Build/Products/Debug-iphoneos/PackageFrameworks/AlamofireDynamic.framework/AlamofireDynamic'

I checked derived data on the simulator folder and it seems that it’s different from the real device. Also what is this Alamofire Dynamic? I searched and cannot seem to find and answer if I remove Alamofire from my project it will build but it will crash giving me the same error as the one above but for Alamofire not Alamofire Dynamic, I tried clean build folder, reinstalling Alamofire, restart Xcode, pretty much everything that I could find online but nothing seems to work. Any help would be appreciated thanks! Forgot to mention that I am using SPM.

2

Answers


  1. Remove the Alamofire package, clean the project using cmd + shift + k, and then add the package again using "Exact Version". I had success adding specifically version 5.8.1.

    Login or Signup to reply.
  2. Try this

    When installing, you need to choose one of two, Alamofire or Alamofire Dynamic

    Delete both libraries in the project settings
    Delete both libraries

    Install via SPM by selecting the target of your project only for Alamofire
    install Alamofire

    FYI: In version 5.9.0 was added Alamofire Dynamic.
    Alamofire Dynamic was added for dynamic linking, most projects don’t need it.

    from the developers of Alamofire:

    I’ve pushed a dynamic-product branch you can try out in the meantime. Looks like the only downside is users may be confused about which product to use since they’d now get prompted to choose when they add Alamofire.

    in version 5.9.0 was added Alamofire Dynamic

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search