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!
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.
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/
We do web/mobile apps and have expertise in building scalable applications 30% faster.
Whether you are starting out or have already made some progress, we can help you build a scalable app faster and cheaper.
Contact me personally at http://scr.im/visheshd