Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A project cannot be generated when there is .when(platforms:) condition in Package.swift file #6199

Open
m-appleseed opened this issue Apr 16, 2024 · 2 comments
Labels
type:bug Something isn't working

Comments

@m-appleseed
Copy link

m-appleseed commented Apr 16, 2024

What happened?

Since the release 4.3.2, we can't update Tuist because of #5953. As a result, we have the error.

How do we reproduce it?

  1. Use the attached sample project;
  2. Move to the folder App;
  3. Run sh tuist install;
  4. Run sh tuist generate;
  5. Get the error;

ios_app_with_local_swift_package.zip

Error log

The target 'ModuleA' depends on the target 'Module_tvOS' from the same project at path /path/to/Packages whose hash hasn't been previously calculated.
Consider creating an issue using the following link: https://github.com/tuist/tuist/issues/new/choose

macOS version

14.4.1

Tuist version

4.9.0

Xcode version

15.3

@m-appleseed m-appleseed added the type:bug Something isn't working label Apr 16, 2024
@PhilippeWeidmann
Copy link

PhilippeWeidmann commented May 16, 2024

I have the same problem with an external dependency. (Tuist 4.13.0)

The dependency Package.swift looks can be found here: https://github.com/swift-server-community/mqtt-nio/blob/main/Package.swift

Here is a minimal example project tuist-test-platform.zip

tuist install works
tuist generate gives the following output:

The target 'MQTTNIO' from project at path /somepath/tuist-test-platform/Tuist/.build/checkouts/mqtt-nio depends on the target 'NIOSSL' from the project at path /somepath/tuist-test-platform/Tuist/.build/checkouts/swift-nio-ssl whose hash hasn't been previously calculated.
Consider creating an issue using the following link: https://github.com/tuist/tuist/issues/new/choose

@pepicrft
Copy link
Contributor

Thanks for the reproduction project @PhilippeWeidmann. We flagged this one as high priority to unblock you as soon as possible. We'll post you with any updates on this front.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants