Skip to content

Produce a compilation error when using an old Xcode version#2222

Merged
NachoSoto merged 1 commit into
mainfrom
swift-version-check
Jan 18, 2023
Merged

Produce a compilation error when using an old Xcode version#2222
NachoSoto merged 1 commit into
mainfrom
swift-version-check

Conversation

@NachoSoto

Copy link
Copy Markdown
Contributor

This will make it easier to figure out that the version is no longer compatible.
Aditionally, I've added UpdatingRequirements.md so we have a single place to reference when changing these requirements.

This will make it easier to figure out that the version is no longer compatible.
Aditionally, I've added `UpdatingRequirements.md` so we have a single place to reference when changing these requirements.
@NachoSoto NachoSoto requested review from a team January 18, 2023 16:00
@NachoSoto NachoSoto marked this pull request as ready for review January 18, 2023 16:00
@NachoSoto NachoSoto changed the title Produce a compilation error when using an old Xcode version Produce a compilation error when using an old Xcode version Jan 18, 2023

If these requirements change, there are several places that need to be updated:
- `README.md`
- https://www.revenuecat.com/docs/getting-started

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is currently wrong:
Screenshot 2023-01-18 at 08 01 45

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed by @aboedo, thanks!

Comment on lines +16 to +19
#if swift(<5.5.2)
// See https://xcodereleases.com
#error("RevenueCat requires Xcode 13.2 with Swift 5.5.2 to compile.")
#endif

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@NachoSoto NachoSoto merged commit f8e07f0 into main Jan 18, 2023
@NachoSoto NachoSoto deleted the swift-version-check branch January 18, 2023 16:16
NachoSoto pushed a commit that referenced this pull request Jan 18, 2023
**This is an automatic release.**

### Other Changes
* set flag to extract objc info for swift symbols (#2218) via Andy Boedo
(@aboedo)
* Produce a compilation error when using an old `Xcode` version (#2222)
via NachoSoto (@NachoSoto)
* `SPM`: added `APPLICATION_EXTENSION_API_ONLY` flag to `RevenueCat` and
`ReceiptParser` (#2217) via NachoSoto (@NachoSoto)
* `PurchaseTester`: added section to visualize `AppleReceipt` (#2211)
via NachoSoto (@NachoSoto)
@vegaro vegaro added pr:other and removed pr:docs labels Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants