Skip to content

Commit

Permalink
Fix remove_private_headers.sh to work with XCode10
Browse files Browse the repository at this point in the history
With XCode10, we can modify the output MODULE_MAP_FILE directly.
  • Loading branch information
pasin committed Sep 13, 2018
1 parent 1867ea8 commit e4667d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scripts/remove_private_headers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

set -e

MODULE_MAP_FILE=${TARGET_TEMP_DIR}/module.modulemap
FRAMEWORK_DIR=${TARGET_BUILD_DIR}/${PRODUCT_NAME}${WRAPPER_SUFFIX}
MODULE_MAP_FILE=${FRAMEWORK_DIR}/Modules/module.modulemap

# Remove private headers from module.modulemap file:
perl -i -0pe "s/module Private {[\s\S]*?}/module Private { }/" "${MODULE_MAP_FILE}"
Expand Down

0 comments on commit e4667d8

Please sign in to comment.