No such module 'Alamofire' - Package manager

swift
xcode
alamofire

#1

Добрый день.
Целый день уже бьюсь.
Создаю пакет в котором хочу использовать Alamofire.
Вроде подключил.
Вот так сейчас выглядит Package.swift:
"
let package = Package(
name: “AC_iOS_NET”,
platforms: [
.iOS(.v10),
],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: “AC_iOS_NET”,
targets: [“AC_iOS_NET”]),
],
dependencies: [
.package(url: “https://github.com/Alamofire/Alamofire.git”, .upToNextMajor(from: “5.2.0”))
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target(
name: “AC_iOS_NET”,
dependencies: []),
.testTarget(
name: “AC_iOS_NETTests”,
dependencies: [“AC_iOS_NET”])
],
swiftLanguageVersions: [.v5]
)
"
Не получается обратиться к Alamofire.

Пишу: import Alamofire
В ответ сабж.
Может кто-то уже сталкивался. Помогите пожалуйста разобраться.


#2

Проблема решилась.
Нужно было сделать так:

let package = Package(
name: “AC_iOS_NET”,
platforms: [
.iOS(.v10),
],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: “AC_iOS_NET”,
targets: [“AC_iOS_NET”]),
],
dependencies: [
.package(name: “Alamofire”, url: “https://github.com/Alamofire/Alamofire.git”, .upToNextMajor(from: “5.2.0”))
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target(
name: “AC_iOS_NET”,
dependencies: [“Alamofire”]),
.testTarget(
name: “AC_iOS_NETTests”,
dependencies: [“AC_iOS_NET”])
],
swiftLanguageVersions: [.v5]
)