That is my Package deal.swift:
// swift-tools-version: 5.8
// The swift-tools-version declares the minimal model of Swift required to construct this package deal.
import PackageDescription
let package deal = Package deal(
identify: "ios-client-sdk",
platforms: [
.iOS(.v13)
],
merchandise: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "ios-client-sdk",
targets: ["ios-client-sdk"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(url: "https://github.com/grpc/grpc-swift.git", from: "1.16.0"),
.package(url: "https://github.com/vapor/jwt-kit.git", from: "4.0.0"),
.package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", from: "1.8.3"),
.package(url: "https://github.com/TakeScoop/SwiftyRSA", from: "1.8.0"),
.package(url: "https://github.com/airsidemobile/JOSESwift", from: "3.0.0"),
.package(url: "https://github.com/Kitura/Swift-JWT.git", from: "4.0.0"),
.package(url: "https://github.com/stephencelis/SQLite.swift.git", from: "0.15.3")
],
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 this package depends on.
.target(
name: "ios-client-sdk",
dependencies: [
.product(name: "GRPC", package: "grpc-swift"),
.product(name: "JWTKit", package: "jwt-kit"),
.product(name: "CryptoSwift", package: "CryptoSwift"),
.product(name: "SwiftyRSA", package: "SwiftyRSA"),
.product(name: "JOSESwift", package: "JOSESwift"),
.product(name: "SwiftJWT", package: "Swift-JWT"),
.product(name: "SQLite", package: "SQLite.swift")
]),
.testTarget(
identify: "ios-client-sdkTests",
dependencies: ["ios-client-sdk"]),
]
)
If i strive tu construct with this command:
-scheme ios-client
-destination "generic/platform=iOS"
-archivePath ./output/clientsdk.xcarchive
SKIP_INSTALL=NO
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
I get some errors like this:
The next construct instructions failed:
SwiftEmitModule regular arm64 Emitting module for Logging (in goal ‘Logging’ from challenge ‘swift-log’)
SwiftEmitModule regular arm64 Emitting module for SQLite (in goal ‘SQLite’ from challenge ‘SQLite.swift’)
SwiftEmitModule regular arm64 Emitting module for SwiftProtobuf (in goal ‘SwiftProtobuf’ from challenge ‘SwiftProtobuf’)
SwiftDriver CryptorECC regular arm64 com.apple.xcode.instruments.swift.compiler (in goal ‘CryptorECC’ from challenge ‘CryptorECC’)
SwiftDriver CryptorRSA regular arm64 com.apple.xcode.instruments.swift.compiler (in goal ‘CryptorRSA’ from challenge ‘CryptorRSA’)
I’ve tried every little thing from clearing the cache to clearing the derivedData however nothing repair my issues.