Skip to content
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-13360] generate-xcodeproj's xcschemes are modified just by opening the project in Xcode #4512

Closed
swift-ci opened this issue Aug 7, 2020 · 3 comments
Labels

Comments

@swift-ci
Copy link
Contributor

swift-ci commented Aug 7, 2020

Previous ID SR-13360
Radar rdar://problem/67361240
Original Reporter ille (JIRA User)
Type Bug

Attachment: Download

Environment

Tested with `swift-package-manager` `4d720d6693e9d2059819a101855369ae86387faa` and Xcode 12 beta.

Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: 205d04030ce6bd6f2d6f19c07c165cff

Issue Description:

To reproduce, use `swift package generate-xcodeproj` to generate an Xcode project, check it in to source control, then open it in Xcode.

Expected results:

Xcode doesn't modify any of the files that have been checked in, as long as you don't actually change any project settings. Xcode does generate various additional files within the .xcodeproj, but they can be safely ignored.

Actual results:

Xcode leaves alone the `project.pbxproj`, but modifies the `xcscheme` in a number of ways; see attached diff.

On its face this seems like an Xcode problem, but Xcode does not always rewrite the file; it only does so if it actually wants to change the settings. For example, if I take Xcode's `xcscheme` file, modify one of the attributes, and add some random whitespace to the XML, then open the project in Xcode, Xcode preserves not only the modified attribute but also the whitespace. Thus, in theory it should be possible for SwiftPM to generate an `xcscheme` that Xcode will not modify.

@typesanitizer
Copy link

@swift-ci create

@swift-ci
Copy link
Contributor Author

swift-ci commented Mar 2, 2021

Comment by Jason Wray (JIRA)

generate-xcodeproj is being deprecated — if there's a use-case not covered by Xcode's ability to directly open/build packages, please feel free to let us know here or in the forums.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
@sjavora
Copy link
Contributor

sjavora commented Jan 30, 2024

@tomerd this can be closed since generate-xcodeproj has been removed.

@tomerd tomerd closed this as completed Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants