xcode-install icon indicating copy to clipboard operation
xcode-install copied to clipboard

Disallow beta versions by parameter

Open olejnjak opened this issue 6 years ago • 2 comments

Hi, I was wondering if there's an option to disallow xcversion to use pre-release versions of Xcode by any parameter.

Our case is that we have a project with fastlane set up. Let's say that now we use Xcode 9.2 and assume there is newer beta available on the developer portal. Occasionally we use the latest beta version because we hope it is gonna be fast and awesome (which of course it isn't - never). So we have in our Fastfile xcversion version: "~> 9.2" to make sure correct Xcode version is selected, but if we have newer beta installed, it is selected.

That's fine as long as we don't want to produce build for the App Store. That's the case when we want to use the "old" 9.2 version.

I know that one solution would be to call xcversion version: "~> 9.2.0" but that becomes annoying because it breaks with every Xcode update.

I'd love to suggest a solution that would allow using something like xcversion version: "~> 9.2" allowBeta: false which would solve the inconvenience of touching Fastfile with every Xcode update and would allow to deliver release builds safely.

What do you think?

olejnjak avatar Dec 13 '17 12:12 olejnjak

That would be great! We have the same problem.

LukasHromadnik avatar Dec 13 '17 12:12 LukasHromadnik

Also got this problem with Github Actions :|

idlework avatar Jan 18 '24 11:01 idlework