diff --git a/packages/clientNative/ios/Podfile.lock b/packages/clientNative/ios/Podfile.lock index a852334875..c6c000aa9d 100644 --- a/packages/clientNative/ios/Podfile.lock +++ b/packages/clientNative/ios/Podfile.lock @@ -67,7 +67,7 @@ PODS: - GoogleUtilities/Environment (~> 8.0) - GoogleUtilities/UserDefaults (~> 8.0) - PromisesObjC (~> 2.4) - - FirebaseRemoteConfigInterop (11.6.0) + - FirebaseRemoteConfigInterop (11.7.0) - FirebaseSessions (11.5.0): - FirebaseCore (= 11.5) - FirebaseCoreExtension (= 11.5) @@ -1812,8 +1812,8 @@ DEPENDENCIES: - React-utils (from `../../../node_modules/react-native/ReactCommon/react/utils`) - ReactCodegen (from `build/generated/ios`) - ReactCommon/turbomodule/core (from `../../../node_modules/react-native/ReactCommon`) - - "RNFBApp (from `../../../node_modules/@react-native-firebase/app`)" - - "RNFBCrashlytics (from `../../../node_modules/@react-native-firebase/crashlytics`)" + - "RNFBApp (from `../node_modules/@react-native-firebase/app`)" + - "RNFBCrashlytics (from `../node_modules/@react-native-firebase/crashlytics`)" - Yoga (from `../../../node_modules/react-native/ReactCommon/yoga`) SPEC REPOS: @@ -1991,9 +1991,9 @@ EXTERNAL SOURCES: ReactCommon: :path: "../../../node_modules/react-native/ReactCommon" RNFBApp: - :path: "../../../node_modules/@react-native-firebase/app" + :path: "../node_modules/@react-native-firebase/app" RNFBCrashlytics: - :path: "../../../node_modules/@react-native-firebase/crashlytics" + :path: "../node_modules/@react-native-firebase/crashlytics" Yoga: :path: "../../../node_modules/react-native/ReactCommon/yoga" @@ -2015,7 +2015,7 @@ SPEC CHECKSUMS: FirebaseCoreInternal: f47dd28ae7782e6a4738aad3106071a8fe0af604 FirebaseCrashlytics: 94c11c3bf296fde8c18f2c9f8e76bd9349227038 FirebaseInstallations: d8063d302a426d114ac531cd82b1e335a0565745 - FirebaseRemoteConfigInterop: e75e348953352a000331eb77caf01e424248e176 + FirebaseRemoteConfigInterop: ca12abf9da0003efd3a476b2dff4f7a04fd31b4f FirebaseSessions: b252b3f91a51186188882ea8e7e1730fc1eee391 fmt: 10c6e61f4be25dc963c36bd73fc7b1705fe975be glog: 08b301085f15bcbb6ff8632a8ebaf239aae04e6a diff --git a/packages/clientNative/ios/ci_scripts/ci_pre_xcodebuild.sh b/packages/clientNative/ios/ci_scripts/ci_pre_xcodebuild.sh new file mode 100755 index 0000000000..48cdd1b7e7 --- /dev/null +++ b/packages/clientNative/ios/ci_scripts/ci_pre_xcodebuild.sh @@ -0,0 +1,34 @@ +#!/bin/sh + +cd ../.. +ls + +echo "===== Installling Gems =====" +echo 'export GEM_HOME=$HOME/gems' >> ~/.zshrc +echo 'export PATH=$HOME/gems/bin:$PATH' >> ~/.zshrc +source ~/.zshrc + +export GEM_HOME=$HOME/gems +export PATH="$GEM_HOME/bin:$PATH" + +echo ">>> INSTALL BUNDLER" +gem install bundler:2.4.10 --install-dir $GEM_HOME +bundle --version +bundle install + +echo "===== Installing Node.js =====" +brew install node@20 +echo 'export PATH="/usr/local/opt/node@20/bin:$PATH"' >> ~/.zshrc +source ~/.zshrc +node -v +npm -v + +# Install dependencies +echo "===== Install JavaScript Dependencies =====" +cd ../.. +npm install -g patch-package +npm install +echo "===== Install Native Dependencies =====" +cd packages/clientNative +npm install +bundle exec pod install --project-directory=ios diff --git a/packages/clientNative/ios/clientNative.xcodeproj/project.pbxproj b/packages/clientNative/ios/clientNative.xcodeproj/project.pbxproj index d7d7e5d9bf..96fd667c73 100644 --- a/packages/clientNative/ios/clientNative.xcodeproj/project.pbxproj +++ b/packages/clientNative/ios/clientNative.xcodeproj/project.pbxproj @@ -48,6 +48,7 @@ 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = clientNative/LaunchScreen.storyboard; sourceTree = ""; }; 89C6BE57DB24E9ADA2F236DE /* Pods-clientNative-clientNativeTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-clientNative-clientNativeTests.release.xcconfig"; path = "Target Support Files/Pods-clientNative-clientNativeTests/Pods-clientNative-clientNativeTests.release.xcconfig"; sourceTree = ""; }; 973490C22D00A5550028D747 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = ""; }; + 9766F85E2D3FEF69001D9D41 /* ci_pre_xcodebuild.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = ci_pre_xcodebuild.sh; sourceTree = ""; }; 9BDD9F9B0CB27C24533D533E /* Pods_clientNative.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_clientNative.framework; sourceTree = BUILT_PRODUCTS_DIR; }; D07853D28988CC9CBE05D36F /* Pods_clientNative_clientNativeTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_clientNative_clientNativeTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; @@ -134,6 +135,7 @@ 83CBB9F61A601CBA00E9B192 = { isa = PBXGroup; children = ( + 9766F85D2D3FEF5A001D9D41 /* ci_scripts */, 13B07FAE1A68108700A75B9A /* clientNative */, 832341AE1AAA6A7D00B99B32 /* Libraries */, 00E356EF1AD99517003FC87E /* clientNativeTests */, @@ -156,6 +158,14 @@ name = Products; sourceTree = ""; }; + 9766F85D2D3FEF5A001D9D41 /* ci_scripts */ = { + isa = PBXGroup; + children = ( + 9766F85E2D3FEF69001D9D41 /* ci_pre_xcodebuild.sh */, + ); + path = ci_scripts; + sourceTree = ""; + }; A6F6B1AE1EEFC1C4024A9C58 /* clientNativeTests */ = { isa = PBXGroup; children = ( @@ -579,6 +589,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CODE_SIGN_IDENTITY = "Apple Development"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Apple Development"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = UKXZMZ23P4; @@ -716,10 +727,7 @@ "-DFOLLY_CFG_NO_COROUTINES=1", "-DFOLLY_HAVE_CLOCK_GETTIME=1", ); - OTHER_LDFLAGS = ( - "$(inherited)", - " ", - ); + OTHER_LDFLAGS = "$(inherited) "; REACT_NATIVE_PATH = "${PODS_ROOT}/../../../../node_modules/react-native"; SDKROOT = iphoneos; SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) DEBUG"; @@ -800,10 +808,7 @@ "-DFOLLY_CFG_NO_COROUTINES=1", "-DFOLLY_HAVE_CLOCK_GETTIME=1", ); - OTHER_LDFLAGS = ( - "$(inherited)", - " ", - ); + OTHER_LDFLAGS = "$(inherited) "; REACT_NATIVE_PATH = "${PODS_ROOT}/../../../../node_modules/react-native"; SDKROOT = iphoneos; SWIFT_VERSION = 5.0; diff --git a/packages/clientNative/ios/clientNative.xcodeproj/xcshareddata/xcschemes/clientNative.xcscheme b/packages/clientNative/ios/clientNative.xcodeproj/xcshareddata/xcschemes/clientNative.xcscheme index bd668084dc..ce8f92aa57 100644 --- a/packages/clientNative/ios/clientNative.xcodeproj/xcshareddata/xcschemes/clientNative.xcscheme +++ b/packages/clientNative/ios/clientNative.xcodeproj/xcshareddata/xcschemes/clientNative.xcscheme @@ -41,7 +41,7 @@