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
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.
The text was updated successfully, but these errors were encountered:
generate-xcodeprojis 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.
Attachment: Download
Environment
Tested with `swift-package-manager` `4d720d6693e9d2059819a101855369ae86387faa` and Xcode 12 beta.
Additional Detail from JIRA
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.
The text was updated successfully, but these errors were encountered: