-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add .swiftpm/xcode to default gitignore #2209
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
Conversation
If you use the new SwiftPM + Xcode 11 integration and open the scheme viewer, Xcode writes a shared scheme. This shared scheme ends up in a path that wasn't previously covered by this gitignore since it's normally intended to be checked in. We can't ignore the entire .swiftpm directory since this can contain other files, but this ignores all Xcode created artifacts.
|
Hm, I'm not sure this is the right thing to do here (correct me if I'm wrong @aciidb0mb3r and @neonichu). The previously ignored |
|
Looks like this is a duplicate of or related to #2200. |
|
Yah, we don't want to ignore shared data by default. Unconditionally persisting schemes which have been viewed in the scheme editor is a general Xcode behaviour we are aware of, we should not try to work around it in SwiftPM. |
|
@neonichu so does this mean we're expecting developers to know about the project stored in .swiftpm and check in files related to it? |
|
@keith I'm assuming you mean the workspace, there shouldn't be a project. Since that is the only way to persist edits to the autogenerated schemes, I would expect that some people need to check these in. It is also possible that in the future, there might be more Xcode-specific configuration data that we expect developers to check in. |
|
I guess I'm just surprised by the UX that the workspace is transparently generated, yet developers may end up seeing untracked files related to a project that they don't have to know exists. |
If you use the new SwiftPM + Xcode 11 integration and open the scheme
viewer, Xcode writes a shared scheme. This shared scheme ends up in a
path that wasn't previously covered by this gitignore since it's
normally intended to be checked in. We can't ignore the entire .swiftpm
directory since this can contain other files, but this ignores all Xcode
created artifacts.
This is a follow up to #2184 and fixes FB6569495