Skip to content

Commit 7bd239f

Browse files
authored
feat: search sub framework paths in metadata generator (NativeScript#277)
1 parent 6d3dfc2 commit 7bd239f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ def map_and_list(func, iterable):
9090
header_search_paths = env_or_empty("HEADER_SEARCH_PATHS")
9191
header_search_paths_parsed = map_and_list((lambda s: "-I" + s), shlex.split(header_search_paths))
9292
framework_search_paths = env_or_empty("FRAMEWORK_SEARCH_PATHS")
93+
# Add extra framework search path for newer Xcode versions
94+
extra_framework_path = os.path.join(sdk_root, "System/Library/SubFrameworks")
95+
if framework_search_paths:
96+
framework_search_paths += " " + extra_framework_path
97+
else:
98+
framework_search_paths = extra_framework_path
9399
framework_search_paths_parsed = map_and_list((lambda s: "-F" + s), shlex.split(framework_search_paths))
94100
other_cflags = env_or_empty("OTHER_CFLAGS")
95101
other_cflags_parsed = shlex.split(other_cflags)

0 commit comments

Comments
 (0)