Commit 6e0174a8 authored by Samuel Giddins's avatar Samuel Giddins

[EmbedFrameworksScript] Only manually copy swift runtime libs in Xcode 6

parent e3fd4dec
...@@ -79,7 +79,8 @@ module Pod ...@@ -79,7 +79,8 @@ module Pod
# Resign the code if required by the build settings to avoid unstable apps # Resign the code if required by the build settings to avoid unstable apps
code_sign_if_enabled "${destination}/$(basename "$1")" code_sign_if_enabled "${destination}/$(basename "$1")"
# Embed linked Swift runtime libraries # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7.
if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then
local swift_runtime_libs local swift_runtime_libs
swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\\\/\\(.+dylib\\).*/\\\\1/g | uniq -u && exit ${PIPESTATUS[0]}) swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\\\/\\(.+dylib\\).*/\\\\1/g | uniq -u && exit ${PIPESTATUS[0]})
for lib in $swift_runtime_libs; do for lib in $swift_runtime_libs; do
...@@ -87,6 +88,7 @@ module Pod ...@@ -87,6 +88,7 @@ module Pod
rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}"
code_sign_if_enabled "${destination}/${lib}" code_sign_if_enabled "${destination}/${lib}"
done done
fi
} }
# Signs a framework with the provided identity # Signs a framework with the provided identity
......
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