Commit 6efbda55 authored by Dimitris Koutsogiorgas's avatar Dimitris Koutsogiorgas Committed by GitHub

Merge pull request #7151 from paulb777/sf-swiftmodule

Copy .swiftmodule to enable access to Swift static frameworks
parents f6a7d532 156e35a9
......@@ -30,6 +30,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
##### Bug Fixes
* Copy .swiftmodule into static_frameworks to enable access to Swift static frameworks
[Paul Beusterien](https://github.com/paulb777)
[#7140](https://github.com/CocoaPods/CocoaPods/issues/7140)
* Fix docs for prefix header paths
[Dimitris Koutsogiorgas](https://github.com/dnkoutso)
[#7149](https://github.com/CocoaPods/CocoaPods/pull/7149)
......
......@@ -469,6 +469,8 @@ module Pod
mkdir -p "${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.framework/Modules"
cp "${BUILT_PRODUCTS_DIR}/lib${PRODUCT_NAME}.a" "${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.framework/${PRODUCT_NAME}"
cp "${MODULEMAP_FILE}" "${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.framework/Modules/module.modulemap"
# If there's a .swiftmodule, copy it into the framework's Modules folder
cp -r "${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}".swiftmodule "${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.framework/Modules/" 2>/dev/null || :
eos
end
......
......@@ -715,6 +715,7 @@ module Pod
build_phase = target.shell_script_build_phases.find do |bp|
bp.name == 'Setup Static Framework Archive'
end
build_phase.shell_script.should.include?('swiftmodule')
build_phase.should.not.be.nil
end
end
......
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