Commit 68373959 authored by Samuel E. Giddins's avatar Samuel E. Giddins Committed by Marius Rackwitz

[EmbedFrameworksScript] Only grep for libswift dylibs linked from @rpath

parent 1e9dae9f
......@@ -72,7 +72,7 @@ module Pod
# Embed linked Swift runtime libraries
local basename=$(echo $1 | sed -E s/\\\\..+//)
local swift_runtime_libs=$(otool -LX "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/$1/$BASENAME" | grep libswift | sed -E s/@rpath\\\\/\\(.+dylib\\).*/\\\\1/g | uniq -u)
local swift_runtime_libs=$(otool -LX "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/$1/$BASENAME" | grep @rpath/libswift | sed -E s/@rpath\\\\/\\(.+dylib\\).*/\\\\1/g | uniq -u)
for lib in $swift_runtime_libs; do
echo "rsync -av \\"${SWIFT_STDLIB_PATH}/${lib}\\" \\"${destination}\\""
rsync -av "${SWIFT_STDLIB_PATH}/${lib}" "${destination}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment