@tychota reported the following in Slack. I’m bringing it up for anyone running into the same issue that’s not in the Slack group.
View in #support on Slack
@Tycho_Tatitscheff : I’ve (yet a new) problem with badly designed SPM deps. This time it is a problem with a missing XCTest (that was somehow magically resolve by SPM) that Tuist don’t understand. =>
My initial tried was to do :
let packageSettings = PackageSettings(
productTypes: [:], // no relevant change here
baseSettings: .settings(), // no relevant change here
targetSettings: [
"iOSSnapshotTestCase": [
"ENABLE_TESTING_SEARCH_PATHS": "YES"
]
]
)
but that lead to other problem =>
I then tried to fork (https://github.com/tychota/Nimble-Snapshots/commit/3bc4859800a7957452fc09d9ba33c5a7249fb808 ) what i consider the problematic package (maybe I should do that in ios-snashot-test-case directly) => no effect, same than image 1
I’m not sure how to properly reason on this.
And even if I have intuition I’ve no idea what are the way to fix them.
Here is the curated graph with my fork of Nimble Snaphot =>
This lead me to think i should fork ios-snasphot-test-case directly, then fork Nimble Snaphot to point to the ios-snasphot-test-case fork.
Something seems to be missing in the generated Xcode project. It’s most likely a bug in the logic that maps the SPM graph to native Xcode project targets. Could you include a project where we can reproduce the issue?