Stackademic

Stackademic is a learning hub for programmers, devs, coders, and engineers. Our goal is to…

Follow publication

Member-only story

Title: ❌ Solving the “Codegen did not run properly” Error in React Native Projects

Free users: https://openjournals.info/posts/with-jay/title-solving-the-codegen-did-not-run-properly-67b73f58d019ad5e16b4fa40

If you’ve been working with React Native, you may have encountered the frustrating error:

error: Codegen did not run properly in your project. Please reinstall cocoapods with bundle exec pod install.

This error can pop up unexpectedly, especially after clearing caches or updating dependencies. In this post, I’ll walk you through the steps I took to resolve this issue.

How I Encountered the Problem

After cleaning up my project cache, I ran into this error when trying to build my iOS project. The suggestion was straightforward: run bundle exec pod install. So I followed the instructions and ran:

bundle exec pod install

But instead of solving the problem, I got another error:

Could not locate Gemfile or .bundle/ directory

This was a bit confusing. Normally, bundle exec pod install works well if you have a Gemfile set up to manage CocoaPods. But in my case, there was no Gemfile, and this error left me searching for answers.

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Published in Stackademic

Stackademic is a learning hub for programmers, devs, coders, and engineers. Our goal is to democratize free coding education for the world.

Written by Jay

I'm a developer interested in personal finance, fitness, and travel. I love staying active, growing financially, and exploring new places.

Responses (1)

Write a response