I've build a react-native application and suddenly I get this error message on my terminal during run of the command react-native run-ios. The same code work fine 10 minutes ago and suddenly I get this error message. Please help...
相关问题
- React Native Inline style for multiple Text in sin
- Xcode debugger displays incorrect values for varia
- Image loads in simulator but not device?
- How Do I Convert Image URI into Byte Expo
- importing files from other directories in xcode
相关文章
- xcode 4 garbage collection removed?
- Why do we have to call `.done()` at the end of a p
- Xcode: Is there a way to change line spacing (UI L
- Unable to process app at this time due to a genera
- Popover segue to static cell UITableView causes co
- “Storyboard.storyboard” could not be opened
- Remove expo from react native
- didBeginContact:(SKPhysicsContact *)contact not in
If you don't have cocoa pods installed you need to
sudo gem install cocoapods
cd ios
pod install
react-native run-ios
if error persists, 1. delete build folder again 2. open the
/ios
folder in x-code 3. navigate File -> Project Settings -> Build System -> change (Shared workspace settings and Per-User workspace settings): Build System -> Legacy Build SystemI had the same error, but it was caused by the package manager process port being already used (port 8081).
To fix, I just ran the
react-native
by specifying a different port, see below.react-native run-ios --port 8090
SOLVED: Always be sure to update your Xcode folks!
Protip: And don't do it from the apple store (but always do it from an official apple website of course)
tip from: http://ericasadun.com/2016/03/22/xcode-upgrades-lessons-learned/
official apple download page: https://developer.apple.com/download/more/
For those who are unable to resolve with above method
Go to project settings in Xcode. Menu File->Project Settings
Go to per-User Project Settings section.
Click on advanced.
Select Xcode Default option. previously this used to be Legacy for my project.
I have analysed on similar lines and concluded that clean is causing the archive to fail. So, the new build system is not clearing the custom/legacy build directory.
If it still Fails you need to clean full project
Do the following:
npm cache clean --force
react-native eject
npm install
react-native link
react-native run-ios
Here is the a possible solution
The problem is found in RealmReact.xcodeproj
build/
folder inios/
and rerun if that doesn't do any change thenIn case this doesn't work, don't be sad, there is another solution to deeply clean project
Delete
ios/
andandroid/
folders.Run
react-native eject
Run
react-native link
react-native run-ios
This will bring a whole new resurrection for your project
If you don't have cocoa pods installed you need to:
Then run:
delete the
build
folder inios
folder of your react native projectrun:
if error persists:
build
folder again/ios
folder in Xcode