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
[SR-10919] Xcode should make it easy to delete Package.resolved when it's the cause of failed resolution #4697
Labels
Comments
Thanks for the detailed report! I've been looking for these. |
@stephencelis Hi! I tried following the steps but I'm getting compilation errors under Xcode 11 beta 2 when building the project for the first time with the Swift 4.2 commit: Undefined symbol: type metadata for Html.Tag.Div
Undefined symbol: Html.div([Html.Attribute<Html.Tag.Div>], [Html.Node]) -> Html.Node
Undefined symbol: type metadata accessor for Html.Attribute
Undefined symbol: Html.Attribute.init(Swift.String, Swift.String?) -> Html.Attribute<A> |
We don't really need to build for this bug but I can't reproduce it either: ╭─ankit@stardust.lan /tmp/pointfreeco ‹7a4ff5a7›
╰─➤ swift package resolve
Fetching https://github.com/pointfreeco/swift-prelude.git
Fetching https://github.com/pointfreeco/swift-snapshot-testing.git
Fetching https://github.com/pointfreeco/swift-html.git
Fetching https://github.com/pointfreeco/swift-tagged.git
Fetching https://github.com/pointfreeco/swift-web.git
Fetching https://github.com/pointfreeco/Ccmark.git
Fetching https://github.com/vapor-community/postgresql.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/IBM-Swift/BlueCryptor.git
Fetching https://github.com/apple/swift-nio-zlib-support.git
Fetching https://github.com/vapor-community/cpostgresql.git
Fetching https://github.com/vapor/node.git
Fetching https://github.com/vapor/core.git
Fetching https://github.com/vapor/bits.git
Fetching https://github.com/vapor/debugging.git
Completed resolution in 11.10s
Cloning https://github.com/vapor/node.git
Resolving https://github.com/vapor/node.git at 2.1.5
Cloning https://github.com/vapor/core.git
Resolving https://github.com/vapor/core.git at 2.2.1
Cloning https://github.com/pointfreeco/swift-tagged.git
Resolving https://github.com/pointfreeco/swift-tagged.git at 926e8e0
Cloning https://github.com/pointfreeco/swift-prelude.git
Resolving https://github.com/pointfreeco/swift-prelude.git at 6e426b0
Cloning https://github.com/IBM-Swift/BlueCryptor.git
Resolving https://github.com/IBM-Swift/BlueCryptor.git at 1.0.23
Cloning https://github.com/vapor-community/cpostgresql.git
Resolving https://github.com/vapor-community/cpostgresql.git at 2.1.0
Cloning https://github.com/vapor/bits.git
Resolving https://github.com/vapor/bits.git at 1.1.1
Cloning https://github.com/vapor-community/postgresql.git
Resolving https://github.com/vapor-community/postgresql.git at 2.1.2
Cloning https://github.com/pointfreeco/Ccmark.git
Resolving https://github.com/pointfreeco/Ccmark.git at master
Cloning https://github.com/vapor/debugging.git
Resolving https://github.com/vapor/debugging.git at 1.1.1
Cloning https://github.com/apple/swift-nio.git
Resolving https://github.com/apple/swift-nio.git at 1.14.1
Cloning https://github.com/pointfreeco/swift-web.git
Resolving https://github.com/pointfreeco/swift-web.git at 2c3d440
Cloning https://github.com/pointfreeco/swift-html.git
Resolving https://github.com/pointfreeco/swift-html.git at 0.2.1
Cloning https://github.com/apple/swift-nio-zlib-support.git
Resolving https://github.com/apple/swift-nio-zlib-support.git at 1.0.0
Cloning https://github.com/pointfreeco/swift-snapshot-testing.git
Resolving https://github.com/pointfreeco/swift-snapshot-testing.git at 1.2.0
╭─ankit@stardust.lan /tmp/pointfreeco ‹7a4ff5a7›
╰─➤ git checkout 0e795c58815dad95d1299eb4c84958f37d01d447
Previous HEAD position was 7a4ff5a7 Update README.md (#443)
HEAD is now at 0e795c58 Merge branch 'xcode-11' into swift-5
╭─ankit@stardust.lan /tmp/pointfreeco ‹0e795c58›
╰─➤ swift package resolve
Updating https://github.com/vapor/debugging.git
Updating https://github.com/vapor-community/postgresql.git
Updating https://github.com/pointfreeco/swift-tagged.git
Updating https://github.com/pointfreeco/Ccmark.git
Updating https://github.com/apple/swift-nio-zlib-support.git
Updating https://github.com/vapor/core.git
Updating https://github.com/apple/swift-nio.git
Updating https://github.com/vapor-community/cpostgresql.git
Updating https://github.com/vapor/node.git
Updating https://github.com/pointfreeco/swift-snapshot-testing.git
Updating https://github.com/IBM-Swift/BlueCryptor.git
Updating https://github.com/vapor/bits.git
Updating https://github.com/pointfreeco/swift-web.git
Updating https://github.com/pointfreeco/swift-html.git
Updating https://github.com/pointfreeco/swift-prelude.git
Fetching https://github.com/apple/swift-nio-extras.git
Fetching https://github.com/apple/swift-nio-ssl.git
Completed resolution in 6.15s
Removing https://github.com/apple/swift-nio-zlib-support.git
Resolving https://github.com/pointfreeco/swift-snapshot-testing.git at 1.5.0
Cloning https://github.com/apple/swift-nio-ssl.git
Resolving https://github.com/apple/swift-nio-ssl.git at 2.1.1
Resolving https://github.com/pointfreeco/swift-prelude.git at swift-5
Resolving https://github.com/apple/swift-nio.git at 2.3.0
Cloning https://github.com/apple/swift-nio-extras.git
Resolving https://github.com/apple/swift-nio-extras.git at 1.1.0
Resolving https://github.com/pointfreeco/swift-web.git at swift-5 |
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Xcode 11 / Swift 4.2&5
Additional Detail from JIRA
md5: a64c338f59c677e7485d7c7d843b36a7
Issue Description:
I encountered an error in Xcode when switching between a Swift 4.2 branch and a Swift 5 branch for pointfreeco:
https://github.com/pointfreeco/pointfreeco
The Swift 4.2 branch (for now) is
master
, but here's an actionable commit: pointfreeco/pointfreeco@7a4ff5aThe Swift 5 branch is
swift-5
, and here's another actionable commit:pointfreeco/pointfreeco@0e795c5
To reproduce:
Clone the repo
Run
make
to ensure dependencies are installedCheck out the Swift 4.2 commit
Open the package in Xcode 11, build
Wait for success
Check out the Swift 5 commit
Go back to Xcode 11, build
You should (hopefully) get the same error I got.
The text was updated successfully, but these errors were encountered: