Browse Source

feat: update iOS project to use hermes

Arnaud Vergnet 2 years ago
parent
commit
d3e94ac9b3
2 changed files with 24 additions and 3 deletions
  1. 23
    2
      ios/Campus.xcodeproj/project.pbxproj
  2. 1
    1
      ios/Podfile

+ 23
- 2
ios/Campus.xcodeproj/project.pbxproj View File

@@ -126,6 +126,7 @@
126 126
 				13B07F8E1A680F5B00A75B9A /* Resources */,
127 127
 				00DD1BFF1BD5951E006B06BC /* Bundle Expo Assets */,
128 128
 				58CDB7AB66969EE82AA3E3B0 /* [CP] Copy Pods Resources */,
129
+				2C1F7D7FCACF5494D140CFB7 /* [CP] Embed Pods Frameworks */,
129 130
 			);
130 131
 			buildRules = (
131 132
 			);
@@ -199,6 +200,24 @@
199 200
 			shellPath = /bin/sh;
200 201
 			shellScript = "../node_modules/react-native/scripts/react-native-xcode.sh\n";
201 202
 		};
203
+		2C1F7D7FCACF5494D140CFB7 /* [CP] Embed Pods Frameworks */ = {
204
+			isa = PBXShellScriptBuildPhase;
205
+			buildActionMask = 2147483647;
206
+			files = (
207
+			);
208
+			inputPaths = (
209
+				"${PODS_ROOT}/Target Support Files/Pods-Campus/Pods-Campus-frameworks.sh",
210
+				"${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/hermes.framework/hermes",
211
+			);
212
+			name = "[CP] Embed Pods Frameworks";
213
+			outputPaths = (
214
+				"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/hermes.framework",
215
+			);
216
+			runOnlyForDeploymentPostprocessing = 0;
217
+			shellPath = /bin/sh;
218
+			shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Campus/Pods-Campus-frameworks.sh\"\n";
219
+			showEnvVarsInLog = 0;
220
+		};
202 221
 		58CDB7AB66969EE82AA3E3B0 /* [CP] Copy Pods Resources */ = {
203 222
 			isa = PBXShellScriptBuildPhase;
204 223
 			buildActionMask = 2147483647;
@@ -388,6 +407,7 @@
388 407
 				COPY_PHASE_STRIP = NO;
389 408
 				ENABLE_STRICT_OBJC_MSGSEND = YES;
390 409
 				ENABLE_TESTABILITY = YES;
410
+				"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "arm64 i386";
391 411
 				GCC_C_LANGUAGE_STANDARD = gnu99;
392 412
 				GCC_DYNAMIC_NO_PIC = NO;
393 413
 				GCC_NO_COMMON_BLOCKS = YES;
@@ -403,7 +423,7 @@
403 423
 				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
404 424
 				GCC_WARN_UNUSED_FUNCTION = YES;
405 425
 				GCC_WARN_UNUSED_VARIABLE = YES;
406
-				IPHONEOS_DEPLOYMENT_TARGET = 9.0;
426
+				IPHONEOS_DEPLOYMENT_TARGET = 11.0;
407 427
 				MTL_ENABLE_DEBUG_INFO = YES;
408 428
 				ONLY_ACTIVE_ARCH = YES;
409 429
 				PRODUCT_BUNDLE_IDENTIFIER = fr.amicaleinsat.application;
@@ -444,6 +464,7 @@
444 464
 				COPY_PHASE_STRIP = YES;
445 465
 				ENABLE_NS_ASSERTIONS = NO;
446 466
 				ENABLE_STRICT_OBJC_MSGSEND = YES;
467
+				"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "arm64 i386";
447 468
 				GCC_C_LANGUAGE_STANDARD = gnu99;
448 469
 				GCC_NO_COMMON_BLOCKS = YES;
449 470
 				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
@@ -452,7 +473,7 @@
452 473
 				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
453 474
 				GCC_WARN_UNUSED_FUNCTION = YES;
454 475
 				GCC_WARN_UNUSED_VARIABLE = YES;
455
-				IPHONEOS_DEPLOYMENT_TARGET = 9.0;
476
+				IPHONEOS_DEPLOYMENT_TARGET = 11.0;
456 477
 				MTL_ENABLE_DEBUG_INFO = NO;
457 478
 				PRODUCT_BUNDLE_IDENTIFIER = fr.amicaleinsat.application;
458 479
 				PRODUCT_NAME = application;

+ 1
- 1
ios/Podfile View File

@@ -9,7 +9,7 @@ target 'Campus' do
9 9
   use_react_native!(
10 10
     :path => config[:reactNativePath],
11 11
     # to enable hermes on iOS, change `false` to `true` and then install pods
12
-    :hermes_enabled => false
12
+    :hermes_enabled => true
13 13
   )
14 14
 
15 15
   

Loading…
Cancel
Save