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

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

parent e3fd4dec
...@@ -79,14 +79,16 @@ module Pod ...@@ -79,14 +79,16 @@ 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.
local swift_runtime_libs if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then
swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\\\/\\(.+dylib\\).*/\\\\1/g | uniq -u && exit ${PIPESTATUS[0]}) local swift_runtime_libs
for lib in $swift_runtime_libs; do swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\\\/\\(.+dylib\\).*/\\\\1/g | uniq -u && exit ${PIPESTATUS[0]})
echo "rsync -auv \\"${SWIFT_STDLIB_PATH}/${lib}\\" \\"${destination}\\"" for lib in $swift_runtime_libs; do
rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" echo "rsync -auv \\"${SWIFT_STDLIB_PATH}/${lib}\\" \\"${destination}\\""
code_sign_if_enabled "${destination}/${lib}" rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}"
done code_sign_if_enabled "${destination}/${lib}"
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