Skip to content

Commit

Permalink
Fix app intents metadata generation for Xcode 15 beta 6. (#2213)
Browse files Browse the repository at this point in the history
The new metadata generation depends on swiftconstvalues files as inputs;
use the legacy extraction strategy as a fallback until we are able to
handle those files.

PiperOrigin-RevId: 555296788
(cherry picked from commit a1571ec)

Co-authored-by: Nicholas Levin <[email protected]>
  • Loading branch information
keith and nglevin authored Aug 28, 2023
1 parent b1b2798 commit 6114208
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apple/internal/resource_actions/app_intents.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ def generate_app_intents_metadata_bundle(
args.add("--toolchain-dir", "{xcode_path}/Toolchains/XcodeDefault.xctoolchain".format(
xcode_path = apple_support.path_placeholders.xcode(),
))
if xcode_version_config.xcode_version() >= apple_common.dotted_version("15.0"):
# TODO(b/295227222): Generate app intents metadata with --compile-time-extraction using
# .swiftconstvals instead of --legacy-extraction at the earliest convenience.
args.add("--legacy-extraction")

apple_support.run(
actions = actions,
Expand Down

0 comments on commit 6114208

Please sign in to comment.