I started to setup a ReactNative project that we have been working on for a while now on my machine. The generated iOS native code was version controlled but the build was still not functioning on my machine.
Followed the setup instructions and I got the following
Can’t build on iOS - “Podfile.lock: No such file or directory”
Turned out I didn’t have cocoapods installed which were needed!
Installing CocoaPods
sudo gem install cocoapods
Once I fixed that, started seeing
”:CFBundleIdentifier”, Does Not Exist
- Close Xcode
- Delete node_modules and reinstall fresh
- Open the project in Xcode
On step three I opened .xcodeproj which gave me something to the effect of
directory not found DerivedData
I had to instead open .xcworkspace. Did a product clean and build and it worked!
When you use CocoaPods, it creates a workspace file that needs to be opened in order for the builds to compile properly.
https://github.com/auth0/react-native-lock/issues/151#issuecomment-295566616
Have you come across other quirky react-native issues? :) … Would love to hear about them.
Original blog post at https://causecode.com/reactnative-bundling-and-build-issues-on-a-new-machine/
If you're a founder or CEO eager to move faster and seek tailored strategies for your unique challenges, don't navigate this journey alone. Reach out to me. Together, we can dissect, refine, and optimize your enterprise's trajectory to withstand the tests of time and innovation. Let's make your vision not just a goal, but an impending reality.
I have limited open hours. Book Appointment