Skip to content

[iOS][Fixed] Wrap UIMenuAutoFill in compilation pragmas for iOS 17 checks#43808

Closed
cipolleschi wants to merge 1 commit intomainfrom
cipolleschi/wrap-uimenuautofill-in-version-checks
Closed

[iOS][Fixed] Wrap UIMenuAutoFill in compilation pragmas for iOS 17 checks#43808
cipolleschi wants to merge 1 commit intomainfrom
cipolleschi/wrap-uimenuautofill-in-version-checks

Conversation

@cipolleschi
Copy link
Copy Markdown
Contributor

@cipolleschi cipolleschi commented Apr 3, 2024

Summary:

PR #43468 landed in main which uses UIMenuAutoFill that is available only in iOS 17.
Despite having the @available checks, these are only runtime checks. The symbol is not stripped on older versions of Xcode and therefore our jobs which uses older Xcode versions started failing.

This change wraps the offending code in a compilation pragma that strips away the symbol when building with Xcode versions that does not know iOS 17.

Changelog:

[iOS][Fixed] - wrap UIMenuAutoFill in compilation checks for iOS 17

Test Plan:

CircleCI is green

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Apr 3, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@cipolleschi cipolleschi force-pushed the cipolleschi/wrap-uimenuautofill-in-version-checks branch from 319b935 to 9f786d4 Compare April 3, 2024 09:49
@cipolleschi cipolleschi force-pushed the cipolleschi/wrap-uimenuautofill-in-version-checks branch from 9f786d4 to f8035b3 Compare April 3, 2024 09:49
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@analysis-bot
Copy link
Copy Markdown

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 18,910,460 +24
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 22,275,008 -4,101
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: 558f6ba
Branch: main

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Apr 3, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@cipolleschi merged this pull request in 1561cc9.

@cortinico cortinico deleted the cipolleschi/wrap-uimenuautofill-in-version-checks branch June 10, 2024 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants