Closed bvirlet closed 2 years ago
I'm trying to debug while running Tuist and here is what I get:
One of my dependencies has the following Package.swift
dependencies: [
…
.package(url: "https://github.com/aws-amplify/aws-sdk-ios-spm", .upToNextMajor(from: "2.23.3")),
…
],
targets: [
.target(
name: "MyTarget",
dependencies: [
…
.product(name: "AWSCore", package: "aws-sdk-ios-spm"),
.product(name: "AWSS3", package: "aws-sdk-ios-spm"),
And it seems that this is what causes the issue: When debugging, tuist
packageInfos dictionary (in PackageInfoMapper) has information for a package named AWSiOSSDKv2
, but it doesn't have any for aws-sdk-ios-spm
.
If I change the Package.swift
above to use the package name AWSiOSSDKv2
, I'm getting the following error:
error: unknown package 'AWSiOSSDKV2' in dependencies of target 'MyTarget'; valid packages are: 'aws-sdk-ios-spm'
The problem is that the package in AWS SDK is incorrectly referenced in the dependencies and this has nothing to do with Tuist.
.package(name: "AWSiOSSDKV2", url: "https://github.com/aws-amplify/aws-sdk-ios-spm", .upToNextMajor(from: "2.23.3")),
Sorry about the noise.
Hello,
I posted this as a discussion, but after investigating today it sounds like this could be an actual issue with Tuist, as I have found that the error message was raised by Tuist.
Discussed in https://github.com/tuist/tuist/discussions/4287
Is Tuist considering the Project.swift files when we do
tuist fetch
, or exclusively the Dependencies.swift?