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
EDIT:
I asked for help in Swift Forums. There I got the explanation for my issue. I was using the same name for two of the packages in the dependency graph. I am not sure if I should close this bug or not. Because I believe that SwiftPM could fail in a more controlled way and give more helpful feedback when there is a clash in packages names.
I attempted to use the dependency using a tag, the branch name and a local folder in my machine, but the outcome was the same. Renaming the library didn't help either.
I have tried to create the minimal project to reproduce the issue in my machine (Package.zip).
I am going to explain also how the issue started, just in case it is useful:
I am building an iOS application. My setup consists of a workspace that contains:
a project with the application's target
a Package.swift file
I also use CocoaPods, but I think it is not relevant to this issue.
I use the Package.swift file to add external dependencies and to create local libraries that I then add to the application target.
I do most of the development opening the workspace and editing the source files and the Package.swift file.
After adding as a dependency the library https://github.com/hectr/swift-http-client.git, Xcode crashed. It kept crashing consistently each time I opened it. See the attached crash report.
If I remove the dependency, Xcode stops crashing.
The text was updated successfully, but these errors were encountered:
Attachment: Download
Environment
Operating System:
Xcode version:
Toolchain:
Swift build version:
Additional Detail from JIRA
md5: b82ae174c427d73d676209e82a91f17b
Issue Description:
EDIT:
I asked for help in Swift Forums. There I got the explanation for my issue. I was using the same name for two of the packages in the dependency graph. I am not sure if I should close this bug or not. Because I believe that SwiftPM could fail in a more controlled way and give more helpful feedback when there is a clash in packages names.
When I add a specific dependency to my Package.swift (https://github.com/hectr/swift-http-client.git) file, SPM stops working (It cannot resolve package dependencies):
I attempted to use the dependency using a tag, the branch name and a local folder in my machine, but the outcome was the same. Renaming the library didn't help either.
I have tried to create the minimal project to reproduce the issue in my machine (Package.zip).
I am going to explain also how the issue started, just in case it is useful:
I am building an iOS application. My setup consists of a workspace that contains:
a project with the application's target
a Package.swift file
I also use CocoaPods, but I think it is not relevant to this issue.
I use the Package.swift file to add external dependencies and to create local libraries that I then add to the application target.
See the file layout:
I do most of the development opening the workspace and editing the source files and the Package.swift file.
After adding as a dependency the library https://github.com/hectr/swift-http-client.git, Xcode crashed. It kept crashing consistently each time I opened it. See the attached crash report.
If I remove the dependency, Xcode stops crashing.
The text was updated successfully, but these errors were encountered: