im new to the world of fast and xcode, so I had a problem trying to integrate the package into my project.
I want to add an Alamofire dependency with the following commands:
Inside my project root folder:
swift init
this creates the Package.swift file, I add the dependency inside, then run:
swift build
Everything seems to be fine, but im my project when I try to import my library:
import Alamofire
I get an error message, it says that the module is not recognized. So my question is: what are the right steps to integrate the package manager and depend on an existing project without failures.
UPDATE:
swift build
outputs:
Resolved version: 4.3.0 Compile Swift Module 'Alamofire' (17 sources) Compile Swift Module 'Sample' (1 sources)
And my Package.swift:
import PackageDescription let package = Package( name: "Sample", dependencies: [ .Package(url: "https://github.com/Alamofire/Alamofire.git", majorVersion: 4) ] )
ios xcode swift swift-package-manager
jesuscc29
source share