Search code examples
react-nativeexpoios-simulator

Unable to run expo project on iOS simulator


I created an expo project and I am trying to run it on both an iOS and an android simulator. Everything works fine on the android simulator but not on the iOS simulator. I am getting the following error:

Error installing or running app. Error: ENOENT: no such file or directory, mkdir '/Users/.../.expo/ios-simulator-app-cache/Exponent-2.16.0.tar.app'

In advance thanks


Solution

  • For some reasons the /Users/.../.expo/ios-simulator-app-cache/ install on my computer was version 25 and my project was expo version 26 that is why it could not find the directory. To solve the problem I ran sudo rm -rf ~/.expo to remove the expo on my computer then I just retried it and it worked