Skip to content

Commit 8b3bc1d

Browse files
authored
Merge pull request #1123 from mendix/moo/MOO-1498-ios-build-config
[MOO-1498] - Update iOS build config
2 parents 4e5b8d1 + 01d13d5 commit 8b3bc1d

2 files changed

Lines changed: 26 additions & 1 deletion

File tree

ios/Podfile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,21 @@ post_install do |installer|
9494
# :ccache_enabled => true
9595
)
9696

97+
installer.pods_project.build_configurations.each do |config|
98+
config.build_settings['OTHER_LDFLAGS'] ||= ['$(inherited)']
99+
if config.name == "Debug"
100+
config.build_settings['DEAD_CODE_STRIPPING'] = 'YES'
101+
end
102+
end
103+
97104
installer.pods_project.targets.each do |target|
98105
target.build_configurations.each do |config|
106+
if target.name == "React"
107+
if config.name == "ReleaseDevApp"
108+
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= []
109+
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] |= ['$(inherited)', "DEBUG=1"]
110+
end
111+
end
99112
# Specify 'Swift Version: 5.0' for resolving archieve errors.
100113
if target.name == 'react-native-video' || target.name == 'MendixNative'
101114
config.build_settings['SWIFT_VERSION'] = '5.0'
@@ -105,4 +118,16 @@ post_install do |installer|
105118
end
106119
end
107120
end
121+
122+
# Ensure deployment_target is set correctly for all projects
123+
installer.generated_projects.each do |project|
124+
project.targets.each do |target|
125+
target.build_configurations.each do |config|
126+
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = deployment_target
127+
end
128+
end
129+
project.build_configurations.each do |bc|
130+
bc.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = deployment_target
131+
end
132+
end
108133
end

ios/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2636,6 +2636,6 @@ SPEC CHECKSUMS:
26362636
SSZipArchive: 8a6ee5677c8e304bebc109e39cf0da91ccef22ea
26372637
Yoga: e14bad835e12b6c7e2260fc320bd00e0f4b45add
26382638

2639-
PODFILE CHECKSUM: f83815b440871ddc4d9bac375e7dc5aef13dcf51
2639+
PODFILE CHECKSUM: bd6c88a4c9599e978dc53573bb32d0ff5fe3a42f
26402640

26412641
COCOAPODS: 1.16.2

0 commit comments

Comments
 (0)