Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swift Package Dependency: "No Such Module..." - Why?

Goal: To learn how to add an import to a Swift package.
Modus Operandi: Use an Apple-supplied Example as base. Add another import (i.e., Alamofire)
Result: Alamofire does import; but its module "can't be found".

The Package:

enter image description here

The Sources:

enter image description here

Question: Why is this happening?
What am I missing?

like image 929
Frederick C. Lee Avatar asked Oct 18 '25 12:10

Frederick C. Lee


1 Answers

Check the target DeckOfPlayingCards, select the General tab, check Framework, Libraries, and Embedded Contents, make sure Alamofire is on the list

like image 86
kun wang Avatar answered Oct 22 '25 01:10

kun wang



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!