`swift sh edit script.swift` generates xcodeproj file incompatible with Xcode 11.6.
toastersocks opened this issue · comments
When trying to edit a script using swift sh edit script.swift
an error dialog pops up in Xcode 11.6 (the latest stable version as of this writing) that says the project can't be opened because it was created using a "future version" of Xcode.
Opening the project in Xcode 12 beta 6, and resetting the Xcode project compatibility version to '11.4' fixes the issue, however the initial value shown is Xcode version '9.3' so this seemingly should be compatible without needing to adjust the setting in Xcode 12.
swift-sh version: 2.0.1
macOS: 10.15.6
Xcode: 11.6
Looks like a quick fix is opening up the project.pbxproj
file in the xcodeproj bundle and changing the objectVersion
key from 54 to 53 enables the project to open in Xcode 11.6.
I'm seeing this as well.
swift-sh version: 2.0.1
macOS: 10.15.6
Xcode: 11.6
It looks like the tuist/Xcodeproj dependency updated that from 51 to 54 a few months ago (https://github.com/tuist/XcodeProj/blob/master/Sources/XcodeProj/Project/Xcode.swift#L29) and that's where things started breaking.
Supposedly fixed in 2.1.0, please confirm.
I have tested 2.1.0 and it's working for me.
Thank you!