We ran “xcodebuild” command but it exited with error code 65 - react-native

I am facing below issue while compiling new react native project. How to resolve this issue? Already followed below commands to resolve but not solved.
updated react native
updated npm
reset react-native cache
reset npm cache
all possible commands tried at my side.

try to run react-native run-ios --verbose, that gives you an approach of what is happening, in my case, I had this error:
the project named 'foo' does not contain a scheme named 'bar'
so I had to deal with the name and the scheme following this steps:
https://stackoverflow.com/a/35500038/1715471
Hope that helps...

Related

error: Error: Unable to resolve module react-freeze

I was adding drawer navigation to my application and everything worked fine. But 4 days after I started receiving following error.
error: Error: Unable to resolve module react-freeze from C:\Users\Jukez\Desktop\familyrecipebook\node_modules\react-native-screens\src\index.native.tsx: react-freeze could not be found within the project or in these directories
I have read the repository of the react-native-screens and tried adding the enableFreeze(false) to App.js but still the error remained. Then tried adding it to the index.js but the error still remained.
I have also run yarn start --reset-cache and gradlew clean
But those haven't worked either and now I am running out of ideas.
Try to Re-install the package and after do "npm install".
If it doesnt work open your "package.json" file and remove the package from there.
It seems that the issue was react-native: 0.68.2 version and when downgraded to 0.68.1 everything worked normally. Seems like there is some issues within new version so have to wait little bit before updating

Module non found react native despite installed

I have a problem with react-native: despite having installed async-storage with the appropriate command and with the right version, I get the following message:
Module not found: Can't resolve '# rect-native-async-storage / async-storage'
I also sent the npm cache clean --force command to clean the cache, but nothing has changed.
What can I do?
Thank you in advance.
If that is your Module: # rect-native-async-storage / async-storage
Than it is incorrect it should be react.
Be sure to follow every step in here: https://react-native-async-storage.github.io/async-storage/docs/install/

Warning: Invalid version react-native#0.64.2 for expo sdkVersion 43.0.0. Use react-native#0.64.3

I am working on an expo project and everything is working fine, but I began to get a warning message when android is building as
Warning: Invalid version react-native#0.64.2 for expo sdkVersion 43.0.0. Use react-native#0.64.3
The app is still running fine but I don't how to fix this error yet and I want to know if it won't cause an issue later.
I have tried to run npx react-native upgrade 0.64.3 but it didn't work, I got this error
info Fetching diff between v0.64.2 and v0.64.3... error Fetch request
failed with status 404: 404: Not Found. error Failed to fetch diff for
react-native#0.64.3. Maybe it's not released yet?
changing the version of react-native manually in the package.json and run expo install worked for me
I use the expo doctor command it allows diagnose issues with the project.
I would recommend using the expo upgrade command. It upgrades the project packages and config for the given SDK version.
More to find here.
I just faced the same issue. Basically it's telling you should use a higher version of your react-native. I solved it just by updating it to the specified version.
npx react-native upgrade 0.64.3
More info here.
Cheers,
If as in my case one need a specific version of react-native, let's say older because some legacy dependencies in a particular project that for some reason can't be upgrade, then change the version in the package.json won't work.
What worked as the cli suggested is to use:
expo doctor --fix-dependencies
That installed the correct lower version of react-native
To find out actual problems run this command :
expo doctor
To solve all problems regarding package conflicts run this command:
expo doctor --fix-dependencies
Use sudo on Unix based OS if you have permission issue to run those commands.
To solve the error, I used the below command:
npm install react-native-clean-project --save-dev
It is a library that allows us to resolve conflicts.
This library is added to your dependencies.
This handles the problem and if it is not the case add this command:
react-native clean-project-auto

Problem validating app.json: Unable to perform cache refresh

i had everything working fine, great tool Expo. however, after updating the expo (npm i -g expo --save) i started getting this problem.
i managed to solve the invalid version issue by adding "sdkVersion": "38.0.0" to my app config - but it was working fine before that. don't know why it started appearing now. struggling to solve "unknown option `--assetExts'" issue here, could you please help ?
Warning: Problem validating app.json: Unable to perform cache refresh
for \schema-undefined.json: Error: Request failed with status code 404.
Error: Invalid sdkVersion. Valid options are 7.0.0, 8.0... 38.0.0
error: unknown option `--assetExts'
Metro Bundler process exited with code 1
Set EXPO_DEBUG=true in your env to view the stack trace.
Problem got fixed for me after updating the expo-cli to the latest version:
npm install -g expo-cli
I had the same problem, what solved it for me was clearing the react-native packager cache.
I ran: expo start --clear
Expo cli docs:
https://docs.expo.io/workflow/expo-cli/
In my package I added:
"start:clear": "expo start --clear",
just to help in the future...

react-native reazy unable to resolve module

I am trying to test out the reazy react-native framework, I can't get the sample app up and running.
when I run the react-native run-ios command i am getting the following error:
unable to resolve module react/lib/reactComponentwithPureRenderMixing
node_modules/react-native-router-flux/node_modules/react-addons-pure-render-mixin/index.js
Module does not exist in the module map
I have removed my modules and reinstalled them. the module folder is there for react-native-router-flux
nothing in the JS console
any help is appreciated
Please install router flux using below and refresh
npm install --save react-native-router-flux
Hope! this helps.
Run the following command and it will be solved-
yarn add react-addons-pure-render-mixin
this is manual step to add this module.