In my case i took the code from another developer and installed required dependancies but it gave me the same error while running the app. So, instead of changing path manually, I removed node modules, .xcode.env and .xcode.env.local along pods and podfile.lock and installed node modules again with npm install, it generated new .xcode.env and .xcode.env.local files with correct path, it is now working for me