Flutter (iOS) app start and stops with crash - ios

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.

Related

Expo Go app download stuck for IOS simulator

I have upgraded expo sdk to recent version 47.0.0.
And expo asked me to upgrade Expo Go version in IOS simulator, so I removed app in IOS simulator.
Then run expo start --ios
It stuck in downloading Expo Go app into IOS simulator.
To fix this, I tried these.
tried on different IOS simulators (iPhone 12, iPhone 12 Pro)
reset IOS simulator (Erase All Content and Settings...)
restart Computer.
installing fresh new app (it stucks too)
Lastly, I tried this
expo client:install:ios
It stuck too, but a few mins later, it shows this message.
This download is taking longer than expected. You can also try downloading the clients from the website at https://expo.dev/tools
Expo Info here:
Thanks.
This was netowork issue, Please check VPN or Firewall or Proxy

Flutter app stuck on Installing and Launching step for physical iPhone

Annoying problem here for my Flutter app: iOS13.3, Xcode11.3 on a physical iPhoneX. The iOS-Simulators all work. The problem is only happening on a physical device. The Flutter App freezes at startup (i.e. at Installing and Launching... step) ! Any ideas ??
My flutter doctor -v does not bring any problems. Also tried flutter clean and flutter upgrade. But nothing seems to fix the problem...
If I run the App from Xcode (Runner.xcworkspace) then everything works as well. Only from VSCode and Flutter, I can no longer launch my physical iPhoneX.
Also, when uploaded to TestFlight, the App freezes at App Start ! (grey screen freeze). Therefore Apple App Store rejects all Flutter Apps for now ! Very annoying.
I am not sure if the Installing and Launching... freeze is related to the TestFlight and App Store Problem !! Might as well be...
This fixed the issue for me:
Run the app from Xcode.
Disable WiFi on iPhone.
Run from Android Studio.
Turn on WiFi on iPhone once the launch process has completed.
This is a workaround solution
I was having this issue. I uninstalled the app from my device, opened the project in xcode, ran some build cleaning thing that appeared in the yellow triangle warning area, then built the app via xcode. Then uninstalled the app from device again. Then ran via android studio and it worked.
Basically, it is because of might some files
For me, this worked
Follows these steps: Go to Flutter > bin > cache
and delete the Artifact folder
Try executing the command: killall -9 dart and retry.
As in my case, I use one of following solutions to fix the issue:
#1. close WiFi on mac, then run from Android Studio; OR
#2. close WiFi on both mac and iphone, then run from Android Studio; OR
#3. enable hotspot on iphone and connect it from mac, then run from Android Studio;

react-native app crashes when distributed

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

visual studio 2017 cordova ios debug in local device failed

This is link of the same problem I raised in Visual Studio Developer support portal.
https://developercommunity.visualstudio.com/content/problem/61875/visual-studio-2017-cordova-ios-debug-on-local-devi.html
I am trying to debug cordova app in iPhone 5s local device connected to my laptop.
visual studio 2017 cordova 7.0.1 xcode 8.3.1 ios 10.2.1
After build it is failing at deployment.
build successful but failing to deploy to IOS device.
it is bringing up itunes and then shows the app there and device is identified but says error occured continue or not? and fails.
Earlier I deployed and several times debugged directly with local device.
one error result states, version mismatch other says device may not be connected and awake.
I am using ipod 9.3 version ios and another one iphone 5s with 10.2.1 ios.
I am building apache cordova app in visual studio 2017 with macincloud remotebuild.
how to resolve this!? any hint is a big help!!
I am manually deploying but can't debug. now,
i am getting network error at xmlhttprequest in device and but same code working fine in simulator.
when press device button then and i restart app then it is dumping a big error message and showing exitapp though i am not using any of that plugin or code line.
how to debug on device is first priority which may help to resolve rest.
1>Time Elapsed 00:05:02.04 2>------ Deploy started: Project: BlankCordovaApp2, Configuration: Debug iOS ------ 2>Found iTunes version: 12.3.2.35 2>Uninstalling app ID: COM.appanem.appanem. 2>Successfully installed .ipa file: C:\Users\Ekambarrao\documents\visual studio 2017\Projects\BlankCordovaApp2\BlankCordovaApp2\bin\iOS\Debug\appanem.ipa. 2>Starting idevicedebugserverproxy.exe at port 3000. 2>Cannot find the app installed on the device. Check that the device is connected, awake, and unlocked. 2>Starting ios_webkit_debug_proxy.exe at port 9221. 2>Deployment failed.
Is everybody happily working with this latest releases of Cordova IOS xcode vs 2017 or everybody facing the same problem as I am?
Issue is resolved, I am able to debug after I built my own VM of IOS and then debug but not sure what really resolved this.
What I can make out is,
unlike earlier, (not sure correct or wrong because this I could not do when I was using macincloud),
now the provisional profile need to be tagged to even device for debugging which was earlier sufficient to just list the device uuid in store certificates and profiles section.

ionic archive ios plugins not found

I'm trying to archive my IOS app (ionic app) and test it on device with Xcode.
When I run my app directly on device, everything is fine. I tried both debug and release scheme.
When I archive my app then upload it to a device with Xcode or via Testflight, I got no error, but I think some plugins are missing because app is broken.
unfortunately I can't debug JavaScript on this archived app so i'm not sure of the error.
all plugins are well listed when i run cordova plugin list and all are in plugins/ios.json file.
Everything is fine on Android
Any idea ?
thanks
I update my cordova version and delete plugins/ios.json file.
Now it's work !

Resources