File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ project: ${XCODEPROJ}
47
47
48
48
${XCODEPROJ} :
49
49
${SWIFT_PACKAGE} generate-xcodeproj --output $@
50
- @-ruby fix-project-settings.rb GRPC.xcodeproj || \
50
+ @-ruby scripts/ fix-project-settings.rb GRPC.xcodeproj || \
51
51
echo " Consider running 'sudo gem install xcodeproj' to automatically set correct indentation settings for the generated project."
52
52
53
53
# Generates LinuxMain.swift, only on macOS.
Original file line number Diff line number Diff line change
1
+ require 'xcodeproj'
2
+ project_path = ARGV [ 0 ]
3
+ project = Xcodeproj ::Project . open ( project_path )
4
+
5
+ # Fix indentation settings.
6
+ project . main_group . uses_tabs = '0'
7
+ project . main_group . tab_width = '2'
8
+ project . main_group . indent_width = '2'
9
+
10
+ # Set the `CURRENT_PROJECT_VERSION` variable for each config to ensure
11
+ # that the generated frameworks pass App Store validation (#291).
12
+ project . build_configurations . each do |config |
13
+ config . build_settings [ "CURRENT_PROJECT_VERSION" ] = "1.0"
14
+ end
15
+
16
+ # Set each target's iOS deployment target to 10.0
17
+ project . targets . each do |target |
18
+ target . build_configurations . each do |config |
19
+ config . build_settings [ "IPHONEOS_DEPLOYMENT_TARGET" ] = "10.0"
20
+ if config . build_settings [ "PRODUCT_BUNDLE_IDENTIFIER" ] then
21
+ config . build_settings [ "PRODUCT_BUNDLE_IDENTIFIER" ] = "io.grpc." + config . build_settings [ "PRODUCT_BUNDLE_IDENTIFIER" ]
22
+ end
23
+ end
24
+ end
25
+
26
+ project . save
You can’t perform that action at this time.
0 commit comments