Closed krze closed 1 month ago
I have the same error using different versions:
Xcode 15.0.1 Destination operating system: iOS 17 Composable Architecture: 1.4.2
Maybe this is due to the renaming of the XCTestDynamicOverlay repo?
When I add swift-composable-architecture
in Xcode I get:
If I click "Add Anyway" then I can't even compile the app.
Sample app TestApp.zip
Thanks for the example! We were able to reproduce and determine that SwiftPM does not resolve the dependency rename in Xcode while it does work in other contexts. We believe this should be fixed with a pinned TCA as long as you update any other previously conflicting dependency to its latest version.
I had to run xcodebuild -resolvePackageDependencies
to fix it.
Selecting "Update to Latest Package Versions" in Xcode didn't work 🤷.
There's still some warnings but at least I can now compile and go on.
Thanks for the quick fix!
Hi @stephencelis, I pinned TCA in Package.resolved
and it did not resolve the warnings. I've attached the changes to the example app to demonstrate the issue. Note the added Package.resolved
in the package with the pin.
Sample 2.zip
Hi @krze, if you update the packages to their latest version (TCA can stay at 1.11.2) it should work:
I think this issue has now been fixed so I am going to close this out. Please feel free to open a discussion if you have more questions!
Confirmed, this is fixed. Thank you!
Description
When you have a project with a package added to it which supports iOS/tvOS 16, then add Swift Composable Architecture as a dependency, the resolve dependencies step will display a warning about conflicting dependencies regarding
swift-syntax
between theswift-composable-architecture
package and its dependencies. This is because the Swift 5.9 package version of Composable uses theswift-syntax
package from"https://github.com/apple/swift-syntax"
instead of"https://github.com/swiftlang/swift-syntax"
like its dependencies.Checklist
main
branch of this package.Expected behavior
No warnings appear
Actual behavior
Several warnings appear when resolving package dependencies:
Steps to reproduce
swift-composable-architecture
as a dependency to the package and ensure at least one target in the package depends on it (I used 1.11.2)xcodebuild -resolvePackageDependencies
from the project directoryThe Composable Architecture version information
1.11.2
Destination operating system
iOS 16
Xcode version information
15.3
Swift Compiler version information
Sample app: Sample.zip