You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are running into an issue with this in our Expo CLI on Windows. After some investigation, it looks like there are some issues with Posix and Windows paths when detecting if files exists or not.
I created a repository with an example running on Ubuntu, MacOS and Windows that demonstrates this issue. The scenario it's testing is fairly simple:
constPBX_PROJECT_PATH=path.resolve('ios','testios2.xcodeproj','project.pbxproj');constSPLASH_SCREEN_PATH=path.join('testios2','SplashScreen.storyboard');// Create a new pbx project instanceconstproject=xcode.project(PBX_PROJECT_PATH);// Now parse the projectproject.parseSync();// Determine if "SplashScreen.storyboard" existsconstfile=project.hasFile(SPLASH_SCREEN_PATH);
There is a workaround, you have to force the SPLASH_SCREEN_PATH to always be a posix formatted path. That works on Linux, MacOS, andWindows.
constSPLASH_SCREEN_PATH=path.join('testios2','SplashScreen.storyboard')// Force the path to always be a posix formatted path.replace(path.sep,path.posix.sep);
The text was updated successfully, but these errors were encountered:
We are running into an issue with this in our Expo CLI on Windows. After some investigation, it looks like there are some issues with Posix and Windows paths when detecting if files exists or not.
I created a repository with an example running on Ubuntu, MacOS and Windows that demonstrates this issue. The scenario it's testing is fairly simple:
You see that this is done successfully on both Linux and MacOS, but fails on Windows.
There is a workaround, you have to force the
SPLASH_SCREEN_PATH
to always be a posix formatted path. That works on Linux, MacOS, and Windows.The text was updated successfully, but these errors were encountered: