From 86955b64e28077686cae5cd96ddac61f2f45e3b8 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 16 Nov 2023 09:03:05 -0800 Subject: [PATCH] set build file --- ios/SalmonWallet.xcodeproj/project.pbxproj | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/SalmonWallet.xcodeproj/project.pbxproj b/ios/SalmonWallet.xcodeproj/project.pbxproj index 238bb94..d0d0b9a 100644 --- a/ios/SalmonWallet.xcodeproj/project.pbxproj +++ b/ios/SalmonWallet.xcodeproj/project.pbxproj @@ -280,7 +280,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "set -e\n\nWITH_ENVIRONMENT=\"../node_modules/react-native/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"../node_modules/react-native/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT $REACT_NATIVE_XCODE\"\n"; + shellScript = "set -e\nexport ENTRY_FILE=\"${PROJECT_DIR}/../src/index.native.js\"\nWITH_ENVIRONMENT=\"../node_modules/react-native/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"../node_modules/react-native/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT $REACT_NATIVE_XCODE\"\n"; }; 00EEFC60759A1932668264C0 /* [CP] Embed Pods Frameworks */ = { isa = PBXShellScriptBuildPhase; diff --git a/package.json b/package.json index 781f4a5..ca84aa3 100755 --- a/package.json +++ b/package.json @@ -116,7 +116,7 @@ "start:web": "react-app-rewired start", "start:web:main": "REACT_APP_SALMON_ENV=main react-app-rewired start", "start:web:prod": "REACT_APP_SALMON_ENV=production react-app-rewired start", - "build:ios": "react-native bundle --entry-file='./src/index.native.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios'", + "build:ios": "react-native bundle --assets-dest='./ios' --entry-file='./src/index.native.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios'", "build": "react-app-rewired build", "build:develop": "REACT_APP_SALMON_ENV=development npm run build", "build:main": "REACT_APP_SALMON_ENV=main npm run build",