Skip to content

Commit

Permalink
Disable debug symbol generation in cocoapods installation examples
Browse files Browse the repository at this point in the history
This speeds up compilation a little and cuts down on i/o a lot.
  • Loading branch information
tgoyne committed May 27, 2020
1 parent eb139a1 commit 4acada2
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/installation/ios/objc/CocoaPodsExample/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,11 @@ end
target 'CocoaPodsExampleTests' do
pod 'Realm/Headers', git: 'https://github.com/realm/realm-cocoa.git', branch: branch, submodules: true
end

post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['GCC_GENERATE_DEBUGGING_SYMBOLS'] = 'NO'
end
end
end
1 change: 1 addition & 0 deletions examples/installation/ios/swift/CocoaPodsExample/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '4.0'
config.build_settings['GCC_GENERATE_DEBUGGING_SYMBOLS'] = 'NO'
end
end
end
8 changes: 8 additions & 0 deletions examples/installation/osx/objc/CocoaPodsExample/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,11 @@ end
target 'CocoaPodsExampleTests' do
pod 'Realm/Headers', git: 'https://github.com/realm/realm-cocoa.git', branch: branch, submodules: true
end

post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['GCC_GENERATE_DEBUGGING_SYMBOLS'] = 'NO'
end
end
end
1 change: 1 addition & 0 deletions examples/installation/osx/swift/CocoaPodsExample/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '4.0'
config.build_settings['GCC_GENERATE_DEBUGGING_SYMBOLS'] = 'NO'
end
end
end
8 changes: 8 additions & 0 deletions examples/installation/watchos/objc/CocoaPodsExample/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,11 @@ target 'CocoaPodsExample WatchKit Extension' do
platform :watchos, '2.0'
pod 'Realm', git: 'https://github.com/realm/realm-cocoa.git', branch: branch, submodules: true
end

post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['GCC_GENERATE_DEBUGGING_SYMBOLS'] = 'NO'
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '4.0'
config.build_settings['GCC_GENERATE_DEBUGGING_SYMBOLS'] = 'NO'
end
end
end

0 comments on commit 4acada2

Please sign in to comment.