Commit 3fc83c83 authored by Ben Asher's avatar Ben Asher

embed fixes

parent 32e84e15
......@@ -109,17 +109,14 @@ module Pod
swift_version = Gem::Version.new(target_swift_version)
should_embed = !target.requires_host_target? && pod_targets.any?(&:uses_swift?)
embed_value = should_embed ? 'YES' : 'NO'
config = {
'ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES' => embed_value,
'EMBEDDED_CONTENT_CONTAINS_SWIFT' => embed_value,
}
if swift_version >= EMBED_STANDARD_LIBRARIES_MINIMUM_VERSION || !should_embed
config.delete('EMBEDDED_CONTENT_CONTAINS_SWIFT')
config = {}
if should_embed
if swift_version >= EMBED_STANDARD_LIBRARIES_MINIMUM_VERSION
config['ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'] = 'YES'
else
config['EMBEDDED_CONTENT_CONTAINS_SWIFT'] = 'YES'
end
end
config
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