React-Native "react-native run-ios" - ios

I installed a fresh react-native app.I keep getting the below error when I ran react-native run-ios
Incorrect hash:
eb7c61ff0c1c55cd85deb3c15f2731c14c787429 ?/Users/johndoe/.rncache/boost_1_63_0.tar.gz
I have tried react-native upgrade, rm -rf node_modules
Still doesn't work.

try this one:
rm -rf ~/.rncache
then re-run it.
react-native run-ios
if it's still not showing the simulator, then you could try to add --simulator="iPhone 6s"
react-native run-ios --simulator="iPhone 6s"

Run this command to freshen up everything and pray twice facing the north.
watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache verify && npm install && npm start -- --reset-cache

Check this error using simulator app and real device.
Upgrade Xcode to currently latest version.
Otherwise use create-react-native-app. That way you can run app both device and simulator, which is great case if you don't need to detach your app.

I just resolve it, this problem is the version of boost wrong in start scripts.
Go to https://github.com/facebook/react-native/blob/0.56-stable/scripts/ios-install-third-party.sh and select the branch your rn version.
Drag to the bottom and go to the url such as https://github.com/react-native-community/boost-for-react-native/releases/download/v1.63.0-0/boost_1_63_0.tar.gz
Copy the download file to ~/.rncache, replace the old one.
Restart.
Done!

Related

How do I fix this flutter iOS error in Xcode?

When I run the command "flutter build ios" - my app is built just fine. I can also run the app in the simulator. However, in Xcode, when I try to open the project, I get the error "unable to attach to DB: error: accessing build database"
This is the first time I've come across this problem on this app. Flutter doctor comes out clean, and nothing changes if I run "flutter clean" and build it again. I can't distribute my app until this is fixed.
That happens at times when the iOS build gets corrupted for some reason.
Close Xcode.
Run flutter clean
After that flutter build ios
Open Xcode again and run your app.
This should generally solve your issue.
If that does not work, you can try this:
flutter clean
cd ios
rm Podfile.lock
rm -rf Pods
pod deintegrate
pod cache clean
pod setup
pod install
After that run flutter build ios
This worked for me, after i run this command
rm -rf ~/Library/Developer/Xcode/DerivedData/
Then i rerun the app and it came to life.

Running react-native run-ios is success. but not launch simulator

I've been using ReactNative in Windows. Android is perfect and now it has to build on the iPhone and give ipa to clients.
However, even if you run counter-native run-ios after updating the code yesterday, the app will not be launched on the simulator.
I started a new project because I thought there might be a problem with my project, and then I ran a counter-native run-ios, but I failed.
The terminal is output as a successful build, but there is no response to the simulator.
App is not installed.
Somebody please help me.
react-native version is 0.59.9
Images are run on terminals and simulators.
As in latest react-native version 0.60.0 + they have fixed too many problems which are with integration of latest xCode version.
Please do the following to achieve
Upgrade react-native version to 0.60.0 or +
rm -rf node_modules/&& yarn install && react-native link
cd ios and then pod install
Close the bundle and run(Cmd+ r) from xCode
Well, in my case I was in sudo mode. When I turned it back to normal mode, it showed up on the IOS simulator as an app.

Release build loads only the splash screen of the app in IOS Xcode Flutter

When in debug mode app works fine. But during the release build it loads only the splash screen. But when I tick debug executable in release mode.The app is working fine. Please guide. Sorry for the format.
Apple rejects my app
Guideline 2.1 - Performance - App Completeness
We discovered one or more bugs in your app when reviewed on iPad
running iOS 12.4 on Wi-Fi.
Specifically, your app only launched to a splash screen with no other
content available to the user.
Next Steps
To resolve this issue, please run your app on a device to identify any
issues, then revise and resubmit your app for review.
You should be write following command in terminal(Android Studio/Visual Code)
rm -rf $HOME/Library/Developer/Xcode/DerivedData/*
# destroy entire flutter cache (will be redownloaded and rebuilt)
# rm -rf $HOME/Library/Flutter/bin/cache/*
# sometimes Flutter doesn't recompile the frameworks
rm -rf ios/Flutter/App.framework ios/Flutter/Flutter.framework
# remove the entire pub-cache
rm -rf ~/.pub-cache/*
# now, remove the build directory
rm -rf build
# now remove the .packages file
rm -f .packages
# now remove the plugins directory
rm -rf .flutter-plugins
pushd ios
pod deintegrate
rm -rf Pods Podfile.lock
rm -rf .symlinks/*
popd
flutter packages get
Do clean of code by flutter clean
Install pods for iOS by
cd ios then pod install.
Then make release build for iOS by flutter build ios --release.
Now you can open iOS project in xcode and only splash screen issue will be fixed.
Same thing happened to me:
flutter clean
flutter build ios --release
Was all I needed (didn't need to do the pod install).
A few links that might also be helpful:
https://github.com/flutter/flutter/issues/22765#issuecomment-449618558
Flutter app opens, but is stuck on splash-screen
You need to build initially from Android studio for iOS.
Initially clean your project - flutter clean
Then run below line in terminal of Android studio.
flutter build ios --release
Now, open XCode and clean project then make your archive. Your issue of stuck in Splash is resolved.

Ionic app in Release mode shows white screen

When I try to run my Ionic 4 app in release mode (both in Simulator and a local iOS device) the splash screen comes up and then all I get is a white screen.
For example, when I execute this command:
ionic cordova run ios --release --prod -- --verbose
I also tried a brand new 'myApp' project (https://ionicframework.com/docs/installation/cli) and exactly the same thing happens. There is no error even when I add verbose and consolelogs.
In debug mode, a local server is started and that renders the app. How is it supposed to work in release mode?
Update: I installed the browser platform since I can't inspect an iOS device in Chrome and I see this error in the browser console which I'll now investigate:
Error: Cannot find module '#angular/core'
The main issue was that I somehow referenced some things from 'ionic-angular' instead of '#ionic/angular'. I don't know how that happened or why it didn't cause issues in Debug mode.
There was also a node-sass issue that I had to resolve first. Once I did that, I got some helpful errors running npm test.
rm -rf node_modules
sudo rm -rf /tmp/*
rm -rf /root/.npm/node-sass
npm uninstall --save node-sass
npm cache clean --force
npm install

Running react-native run-ios launches the app but close after splash, but via Xcode works perfectly

I am developing a React Native app. Since last week, I don't know why, I cannot run my app via react-native run-ios because the app just close after splash is shown.
Conversely, if I run the application from Xcode it works perfectly. In Android works perfectly too.
I need to run it via react-native run-ios to debug, someone have an idea what could be happening?
This problem has occurred after update my macOS from Sierra (not High Sierra) to Mojave.
EDIT: When this screen appear, it don't let a second to response, automatically the app close itself, and I cannot activate the debug mode to try see something in the console, the Node console of the server don't seems show anything weird, all is like it should be.
I've had similar errors, for me it was enough to re-run pod install, clean cache, restart simulator and temporarily disable the debugger.
1) Clean all the cache:
rm -rf $TMPDIR/react-* && rm -rf $TMPDIR/metro-* && rm -rf $TMPDIR/haste-* && watchman watch-del-all && rm -rf ios/build && rm -rf node_modules && npm install && npm start -- --reset-cache
2) re-run pod install in the ios folder
3) restart the simulator or try to change the simulator:
react-native run-ios --simulator="iPhone 7"
4) After app starts installing on simulator immediately run a CMD+D and disable debugger
If you get any error with cocoaPods try re-installing them:
sudo gem install cocoapods
The error your are getting for cocoapods should be fixed with a simple re-install.
Update: I was able to replicate this on device, the only workaround to I found to load content was to disable the debugger and using console.warn to debug things. On simulator restarting JS server and disable&&enable the debugger seems to fix any issue.
I will update my answer if I will find a better solution.
I could reach to debug the app from Xcode changing schema from Release to Debug.
Anyway I could reach open it with the command react-native run-ios.
The steps to change schema are those:
Product -> Scheme -> Edit Scheme and select Debug instead of Release.

Resources