From d3e94ac9b3fe16bfccbe34979a14534b4c08d970 Mon Sep 17 00:00:00 2001 From: Arnaud Vergnet Date: Sun, 12 Sep 2021 17:31:22 +0200 Subject: [PATCH] feat: update iOS project to use hermes --- ios/Campus.xcodeproj/project.pbxproj | 25 +++++++++++++++++++++++-- ios/Podfile | 2 +- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/ios/Campus.xcodeproj/project.pbxproj b/ios/Campus.xcodeproj/project.pbxproj index 6774e20..eb608e6 100644 --- a/ios/Campus.xcodeproj/project.pbxproj +++ b/ios/Campus.xcodeproj/project.pbxproj @@ -126,6 +126,7 @@ 13B07F8E1A680F5B00A75B9A /* Resources */, 00DD1BFF1BD5951E006B06BC /* Bundle Expo Assets */, 58CDB7AB66969EE82AA3E3B0 /* [CP] Copy Pods Resources */, + 2C1F7D7FCACF5494D140CFB7 /* [CP] Embed Pods Frameworks */, ); buildRules = ( ); @@ -199,6 +200,24 @@ shellPath = /bin/sh; shellScript = "../node_modules/react-native/scripts/react-native-xcode.sh\n"; }; + 2C1F7D7FCACF5494D140CFB7 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Campus/Pods-Campus-frameworks.sh", + "${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/hermes.framework/hermes", + ); + name = "[CP] Embed Pods Frameworks"; + outputPaths = ( + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/hermes.framework", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Campus/Pods-Campus-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; 58CDB7AB66969EE82AA3E3B0 /* [CP] Copy Pods Resources */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; @@ -388,6 +407,7 @@ COPY_PHASE_STRIP = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; + "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "arm64 i386"; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_DYNAMIC_NO_PIC = NO; GCC_NO_COMMON_BLOCKS = YES; @@ -403,7 +423,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; PRODUCT_BUNDLE_IDENTIFIER = fr.amicaleinsat.application; @@ -444,6 +464,7 @@ COPY_PHASE_STRIP = YES; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; + "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "arm64 i386"; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_NO_COMMON_BLOCKS = YES; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; @@ -452,7 +473,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; MTL_ENABLE_DEBUG_INFO = NO; PRODUCT_BUNDLE_IDENTIFIER = fr.amicaleinsat.application; PRODUCT_NAME = application; diff --git a/ios/Podfile b/ios/Podfile index 7165302..e71ec85 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -9,7 +9,7 @@ target 'Campus' do use_react_native!( :path => config[:reactNativePath], # to enable hermes on iOS, change `false` to `true` and then install pods - :hermes_enabled => false + :hermes_enabled => true )