diff --git a/react-native-xcode.sh b/react-native-xcode.sh index a27d2dbe..d3a7e23b 100755 --- a/react-native-xcode.sh +++ b/react-native-xcode.sh @@ -34,7 +34,7 @@ esac REACT_NATIVE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # Xcode project file for React Native apps is located in ios/ subfolder -cd .. +cd ${REACT_NATIVE_DIR}/../.. # Define NVM_DIR and source the nvm.sh setup script [ -z "$NVM_DIR" ] && export NVM_DIR="$HOME/.nvm"