Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Custom build setting for a custom user configuration is incorrectly applied to the Release config settings #1014
I have a project with 3 different configurations:
I'm using the
I'm using CocoaPods 0.19 and here's the Podfile:
platform :ios, :deployment_target => '5.0' pod 'Shakedown' # post install post_install do |installer| # Build settings installer.project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['ARCHS'] = 'armv7' # Only build armv7 for now definitions = '$(inherited)' definitions += ' DEBUG' if config.name.downcase == 'debug' definitions += ' ADHOC' if config.name.downcase == 'adhoc' config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] = definitions end end end
Now, another interesting fact is that if I specify
Let me know if you need more details.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
Indeed, there is a bug. The setting hash is the same instance (the same Ruby object). You should be able to confirm this intuition with:
# snip target.build_configurations.each do |config| config.build_settings = config.build_settings.dup config.build_settings['ARCHS'] = 'armv7' # snip