Closed paradiseduo closed 2 years ago
@paradiseduo can you post more details about the use case? maybe share the project or a small reproducer?
Coming here unrelatedly, but might as well drop a hint.
Frequently when you hit this type of error /Users/admin/Desktop/Code/resymbol/.build/x86_64-apple-macosx/release/Backtrace.build/module.modulemap:2:12: error: header '/Users/admin/Desktop/Code/resymbol/.build/x86_64-apple-macosx/release/Backtrace.build/Backtrace-Swift.h' not found
it actually is a missing explicit dependency -- you need to add a dependency for the Backtrace target in your Package.swift
before you depend on it in your app.
This is what https://github.com/apple/swift-package-manager/pull/3562/commits/a4114eb92d2d77fd85495ac5a0fb3617f0e5267e will be diagnosing better actually; but that didn't make it into 5.7 sadly