|
@@ -9,6 +9,9 @@ require 'xcodeproj'
|
9
|
9
|
|
10
|
10
|
project = Xcodeproj::Project.open(__dir__ + "/../node_modules/react-native/React/React.xcodeproj")
|
11
|
11
|
|
12
|
|
-project.build_configuration_list['Release'].build_settings['WARNING_CFLAGS'] = ['-Wno-shorten-64-to-32','-Wno-unused-parameter','-Wno-unreachable-code','-Wno-deprecated-declarations','-Wno-extra-tokens','-Wno-unused-variable','-Wno-incompatible-pointer-types','-Wno-conditional-uninitialized','-Wno-undeclared-selector','-Wno-objc-protocol-property-synthesis']
|
|
12
|
+warning_flags = ['-Wno-shorten-64-to-32','-Wno-unused-parameter','-Wno-unreachable-code','-Wno-deprecated-declarations','-Wno-extra-tokens','-Wno-unused-variable','-Wno-incompatible-pointer-types','-Wno-conditional-uninitialized','-Wno-undeclared-selector','-Wno-objc-protocol-property-synthesis']
|
|
13
|
+
|
|
14
|
+project.build_configuration_list['Debug'].build_settings['WARNING_CFLAGS'] = warning_flags
|
|
15
|
+project.build_configuration_list['Release'].build_settings['WARNING_CFLAGS'] = warning_flags
|
13
|
16
|
|
14
|
17
|
raise "Error: Unable to save Xcode project" unless project.save()
|