DEV Community

Cover image for Weirdest error in react native thus far..
Jafaru Emmanuel
Jafaru Emmanuel

Posted on

Weirdest error in react native thus far..

A few moments ago, I came across one of the weirdest errors I have come across many times while working in a React Native project.

This error message was so much that the terminal was not able to display all that message for the error log.

Immediately I sped off to run npm i then tried to build my app on IOS with npx react-native run-ios and the error surfaced yet again.

I remembered it showed something about pod in the message, so I quickly ran pod install.

As the usual, it took a 'quick' few seconds and installed, then was I in a hurry to run

npx react-native run-ios

once again. It took a few seconds before finally throwing the error yet again.

This time I took a deep look in the message and found right at the bottom of the error message a few lines that said something about one of my remote configuration file.
I was pissed at myself for not noticing this initially.
I then moved on to open this workspace file from the IOS directory. Then ran the application. That was where I saw it clearly say that the smile configuration file was missing.
Strangely, I had the file, so I simply deleted it and copied it back, then once again hit the play button on Xcode and it built successfully.
I could tell that my problem was solved, but I had to ensure that it ran on my VS Code and that was it.
Did I do any extra step to have it run on VS Code? Interestingly, this time I did not have to.

Image description

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs