Skip to content

Commit 8980c0f

Browse files
dgmachadoNathanWalker
authored andcommitted
fix: Mac Catalyst build (#189)
1 parent 398c449 commit 8980c0f

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

metadata-generator/build-step-metadata-generator.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ def map_and_list(func, iterable):
4343
docset_platform = "OSX"
4444
default_deployment_target_flag_name = "-mmacosx-version-min"
4545
default_deployment_target_clang_env_name = "MACOSX_DEPLOYMENT_TARGET"
46+
elif effective_platform_name == "-maccatalyst":
47+
docset_platform = "maccatalyst"
48+
default_deployment_target_flag_name = "-mmaccatalyst-version-min"
49+
default_deployment_target_clang_env_name = "MACCATALYST_DEPLOYMENT_TARGET"
4650
elif effective_platform_name == "-watchos":
4751
docset_platform = "watchOS"
4852
default_deployment_target_flag_name = "-mwatchos-version-min"

project-template/internal/nativescript-build.xcconfig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,6 @@ LDPLUSPLUS = $SRCROOT/internal/nsld.sh
2222
EXCLUDED_ARCHS_x86_64 = arm64 arm64e
2323
EXCLUDED_ARCHS[sdk=iphonesimulator*] = i386 armv6 armv7 armv7s armv8 $(EXCLUDED_ARCHS_$(NATIVE_ARCH_64_BIT))
2424
EXCLUDED_ARCHS[sdk=iphoneos*] = i386 armv6 armv7 armv7s armv8 x86_64
25-
VALIDATE_WORKSPACE = YES
25+
VALIDATE_WORKSPACE = YES
26+
27+
VALID_ARCHS[sdk=macosx*] = arm64

0 commit comments

Comments
 (0)