0

After updating a react-native version, have got some issues while trying to npm run ios.

This is a problem what I've got:

enter image description here

enter image description here

What I Tried:

I have installed cocoapods, done pod deintegrate, done pod update also I have done pod repo update. I tried to delete and reinstall node_modules. But errors are the same.

While running a pod install, I have got this: enter image description here

The output of react native doctor:

enter image description here

here is what i have when running in xcode:

enter image description here enter image description here enter image description here enter image description here

react native info enter image description here

content of pod file: enter image description here

10
  • Try deleting pods folder & .lock file and npx pod-install in the project root Commented Jul 24, 2021 at 18:41
  • @RajendranNadar same result unfortunately Commented Jul 24, 2021 at 18:48
  • Try npx react-native doctor check if there is any error or warning Commented Jul 24, 2021 at 19:18
  • Try changing the build setting to legacy and re-run the app Commented Jul 24, 2021 at 20:07
  • Can you paste the build log? From Xcode stackoverflow.com/a/30084344/5519872 Commented Jul 24, 2021 at 20:17

2 Answers 2

1

Upgrading to a new RN version can be quite tricky sometimes. An easy way to do it is to just use this helper. You put your old (current) version number into the left textbox on the helper website, and then you also put your new version that you want to upgrade to into the textbox on the right, before clicking the 'Show me how to upgrade!' button.

So in your case what I would suggest you do is to use this helper as a guide for your particular scenario, using your old version and the new one that is giving you the errors. Once you click on the button, it will show you exactly which changes you need to make in order for your project to build successfully. Then you can compare what you have already tried to the guide, perhaps you missed something somewhere.

Sign up to request clarification or add additional context in comments.

5 Comments

He is using expo so expo upgrade works in most cases when there is not react-native version change.
But he mentioned nothing about Expo or expo upgrade anywhere in his question though...
You can see uni-modules in the podfile, so it is expo bareworkflow application
If it is Expo's bare workflow, then he can still use the RN upgrade helper in my answer. In fact, that is exactly what I use to upgrade my Expo bare workflow app.
By the way, the library you are referring to, expo-file-system can be used and installed on even non Expo RN apps. It is possible to install Expo libraries as npm packages, just like you would any other npm library.
0

This is what you need to do

  1. cd ios

  2. pod install --repo-update or pod repo update

  3. pod install

Or to simplify it with a single cmd you can use npx pod-install repo update && npx pod-install

The pod install should run successfully. This happened to me after installing a package & running npx pod-install

I just got this error in one of the projects the above steps solved my issue. Try this and let me if any issues.

11 Comments

Now I have only this problem Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app
To fix that use sudo xcode-select -switch /Applications/Xcode.app/ Make sure the path is correct I am assuming Xcode.app is inside the applications folder because it is the default path until you change it.
the same result:(
This is a new project? The version of react native? Did you try to unlink all the packages using yarn react-native unlink <package>? Any issue with doctor cmd for ios? Try to build the app through xcode
Also try to restart the pc sometimes it works, happens with me also.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.