You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a valid bug. We turn all targets from Package.swift into .external without the package identifier which is not correct. This leads to issues like this when the names clash. We should imho extend the .external case to optionally include the package name and try to match that first.
Would you want to take a look at this? Most of the logic can be found in PackageInfoMapper.
What happened?
I have two almost identical SPM packages (for different platforms), with different product names.
But the targets in the products are the same.
If I add both packages to
Tuist/Package.swift
and connect iOS framework to my project target, there is a bug:tuist generate
, Tuist connects to my target either iOS.xcframework or tvOS.xcframework - randomlyWorkaroung:
Rename the target names to "FrameworkiOSBinary" and "FrameworkTvOsBinary"
How do we reproduce it?
Repro in example ⬆️
Error log
I get an error when compiling the target, which indicates that an attempt is being made to link a framework from a platform other than the target
macOS version
14
Tuist version
4.9.0
Xcode version
15.2
The text was updated successfully, but these errors were encountered: