xcpretty / xcode-install

🔽 Install and update your Xcodes
https://fastlane.tools
MIT License
2.59k stars 239 forks source link

Disallow beta versions by parameter #254

Open olejnjak opened 6 years ago

olejnjak commented 6 years ago

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?

LukasHromadnik commented 6 years ago

That would be great! We have the same problem.

idlework commented 8 months ago

Also got this problem with Github Actions :|