We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6340fa7 commit 42dc3aaCopy full SHA for 42dc3aa
fastlane/lib/helper/update_helper.rb
@@ -140,8 +140,7 @@ def update_rnbranch_xcodeproj(version)
140
rnbranch_option = %[RNBRANCH_VERSION=@\\"#{version}\\"]
141
project = Xcodeproj::Project.open 'ios/RNBranch.xcodeproj'
142
project.build_configurations.each do |config|
143
- options = config.build_settings['GCC_PREPROCESSOR_DEFINITIONS']
144
- options ||= []
+ options = config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] || []
145
options = options.reject { |o| o =~ /^RNBRANCH_VERSION=/ }
146
options << rnbranch_option
147
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] = options
0 commit comments