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
<ExternalDependency> is not a valid configured external dependency #6272
Comments
Hey @sovata8 👋 Can you post a reproducible project that you worked with? Have you run You can check out our fixture that showcases how to integrate dependencies via the XcodeProj-based integration: https://github.com/tuist/tuist/tree/main/fixtures/app_with_spm_dependencies |
Hi, thanks for the reply. The link to the sample project was a great resource! I am attaching both my sample minimal reproducible project, and the modified Tuist's tl;dr: The findings(The explanation here applies to both attached projects, they have been reduced to the same reproducible issue) So, in both projects Both MyApp and MyFramework have a MyFramework's 'Project.swift' has as a target dependency: MyFramework's 'Project.swift' has as a target dependency: When it works and when it doesn'tWe need to define the Alamofire package somewhere:
If we define it under But the above is somewhat confusing / unexpected / not ideal - by defining he package in the main app's Ideally, we would like to be able to define the Alamofire package under ``Alamofire Zip files |
What problem or need do you have?
I am trying to get a very basic setup running, but getting an error generating the project.
I have an app, depending on a local Swift Package, which itself depends on a remote (external) package.
I followed the docs:
https://docs.tuist.io/guide/project/dependencies
Ideally I'd like the 'XcodeProj-based integration' approach.
MyApp (a SwiiftUI app)
|____ MyUI (A local Swift Package - added as a local dependency to MyApp)
|____ SnapKit (A third-party package hosted on GitHub - added as an external dependency (GitHub) to MyUI)]
MyUI
Tuist project, it works fine.MyApp
Tuist project, I get error:'SnapKit' is not a valid configured external dependency
.SnapKit
, I can generateMyApp
successfully.I tried with other frameworks too, not only SnapKit (like Alamofire, DeepDiff, SDWebImage)
MyApp
hasProject.swift:
MyApp
hasProject.swift:
and
Package.swift
:Any info would be appreciated, thanks
Potential solution
No response
macOS version
14.1.1
Tuist version
4.9.0
Xcode version
15.2
The text was updated successfully, but these errors were encountered: