react-native app crashes when distributed - ios

When running the app on a simulator (or on a connected iPhone), I have no trouble running the application.
However when I archive the app in xcode (build succeeds) and distribute it using either HockeyApp or Fabric, the app installs just fine, but upon opening the app, it crashes right after the splash screen.
The log-file that is being generated on the iPhone does not give any useful information
On the Fabric/HockeyApp dashboard no crashes are being registered.
Any advice on how to get a stack trace or other useful crash log?

When running the react-native app using react-native run-ios --configuration Release, I was able to reproduce the error in the simulator and fix the JS error that was somehow not appearing running in debug mode. Logs for the Simulator can be found at
~/Library/Logs/CoreSimulator

Related

Why does my Flutter app crash on some iPhones?

I've created an app using Flutter and successfully published it to the App Store. During my testing I have never experienced any crashes (both on Simulator and on a physical iPhone), but some users have reported that the app immediately crashes on startup.
The crashes seem to happen randomly (as in some users experience crashes but others don't, and there doesn't seem to be any similarities in the devices that the crashes happen on).
FYI, compiling for Android still works and I have not experienced any crashes for Android at all.
While trying to solve this problem I have tried to modify Info.plist for both debug and release versions, but now when trying to build the app for iOS (Simulator and physical devices) the build is stuck on trying to compile my main file.
Info from flutter run -v:
... logs ...
[ +3 ms] executing: [/Users/ashley/Documents/attendance app/attendance_app/ios/] /usr/bin/arch -arm64e xcrun xcodebuild -list
[ +7 ms] <- compile package:attendance_app/main.dart
It gets stuck on this last line for over 30 minutes (I stopped it after that) when trying to compile main.dart.
Does anyone know how to resolve this? Thanks.

react native IOS app crash when restart or send to other device

we are testing IOS app on python selenium, Appium, our client made the app with react native, when I built the app it will work fine, but once I shutdown/ or restart my device or even send it to another device it will crash, I searched for this but did not find any helpful things. and I don't think it has anything with Appium because this will happen even without running it.
why is it happening?
I do not know anything about react native, is there any token for the build on react-native?
I found out what was happening, I was building the debug version, it will only work when the react-native terminal window is active, to make it work I used
npx react-native run-ios --configuration Release
and it's working fine now

Flutter (iOS) app start and stops with crash

I have developed a Flutter Android app and that is working fine. Now I am working on the iOS side. I have configured Firebase and notification APN etc. When I run the app by attaching the real device the app got installed but it just crashes and closes. There are no logs in the console of Android studio.
It just prints below logs.
Launching lib/main.dart on sign's iPhone in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode
project: ABCD7AUXYZ
Running Xcode build...
Xcode build done. 78.0s
Installing and launching...
Where can I find more logs about the crash?
When I build the project using the Xcode (Thanks to #Blasanka & #Kevin Renskers) I was able to find out the issue. Actually I was missing the Admob id in the plist file and the internet permission (thanks to #Stephen J).
thanks you for your time and help.

Cordova deploy app on iOS device

I have a app that runs in the iOS-simulator. The app is compiled with cordova 3.4. After that, I can run the app via shell by calling "cordova run iOS" as well as open the project in xCode and press the play button. Both works.
I attempted to put the app on my iOS-device (iPhone-5s, iPad-Retina). But that does work neither with console nor with xCode.
When I try to run the app on the console by "start iOS" the console freezes before the app is installed on the device. I don't get any error logs. It tried that a few times, and sometimes the app is installed, but the console freezes.
Trying to run the app with xCode I get those errors and issues:
I have the current versions of iOS, xCode and MacOS as well as a developer ID, that is requested by the cordova-console when I try to start the app on a real device. The device was set to a working-group of my apple-developer account, too. That shouldn't cause the problems.
The build-location was set to unique and xcode-default. That doesn't change anything.

App is giving SIGABRT when running on already running simulator

When I am running the application from XCode through the simulator for the first time its running fine. But when the application is running in the simulator and if I run again from the XCode the app is stuck at splash screen, and the app is giving SIGABRT crash. When I stop the build from XCode the app continues to run from the splash screen. What might be the issue?
If you are running Xcode 4.6.2 on OSX 10.8.4, try upgrading to Xcode 4.6.3 which was just released a few days ago. The 4.6.3 version has fixes for the random crashes and hangs that sometimes happens when debugging on the ios simulator.
This is XCode issue. Sometimes the bootstrap fails to register the application. Usually giving an error on console as
Couldn't register com.compname.yourapp with the bootstrap server. Error: unknown error code. This generally means that another instance of this process was already running or is hung in the debugger.Program received signal: “SIGABRT”.
Solution
If running on device, switch off and restart device.
If running on simulator, restart your Mac.

Resources