Commit 9a70f0b0 authored by Louis D'hauwe's avatar Louis D'hauwe

Inherit pod defined values for SWIFT_ACTIVE_COMPILATION_CONDITIONS in debug mode.

parent f8edd737
......@@ -54,6 +54,7 @@ module Pod
'PODS_TARGET_SRCROOT' => target.pod_target_srcroot,
'PRODUCT_BUNDLE_IDENTIFIER' => 'org.cocoapods.${PRODUCT_NAME:rfc1034identifier}',
'SKIP_INSTALL' => 'YES',
'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => '$(inherited) ',
# 'USE_HEADERMAP' => 'NO'
}
......
......@@ -59,6 +59,8 @@ module Pod
settings['CODE_SIGN_IDENTITY[sdk=iphoneos*]'] = ''
settings['CODE_SIGN_IDENTITY[sdk=watchos*]'] = ''
settings['SWIFT_ACTIVE_COMPILATION_CONDITIONS'] = '$(inherited) '
if target.swift_version
settings['SWIFT_VERSION'] = target.swift_version
end
......
......@@ -254,6 +254,11 @@ module Pod
end
end
settings['GCC_PREPROCESSOR_DEFINITIONS'] = definitions
if type == :debug
settings['SWIFT_ACTIVE_COMPILATION_CONDITIONS'] = 'DEBUG'
end
build_configuration
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