I test my app on the iOS simulator without a problem, on Android everything is fine, but when I download the app on the iPhone, it doesn't work. It gets stuck in the LaunchScreen and suddenly closes after about 10 seconds.
I have no clue why. I already tried a possible solution that was to specify the node version on the Build Phases > Bundle React Native code and images
App on Android already released but I'm facing this issue on iOS.
Debug
Same Wifi
No VPN on
Plug in your device via USB
Related
I'm creating a flutter plugin and I just tried the example project that gets created by flutter it self. This example project is an app that shows the operation system and its version. If I start it from Xcode on my iPhone SE, it works fine.
But if I close the app and open it without Xcode, that means that I tipp on the app icon to launche it, like every normal app, it doesn't start correctly.
It is showing for not even a second a white screen, followed by a black screen and is closing the app right after this.
Why is it behaving like that?
Is it, because it is a debug version and needs Xcode?
How can I put my example app on my iPhone without needing a connection to Xcode to start it?
Thanks in advance!
Edit: Thanks to the answer of Răzvan Puiu below, i know now that this is because xCode puts the app as a debug version on my iPhone. This debug version can only run with xCode. After I tried it with a 'normal' app and not the example app of a plugin project, i even got this text shown if i tried to start the debug version without xCode:
So the solution is to run the app with:
flutter run --release
I believe it behaves like that because you don't have an Apple developer account. "Without enrolling in the Apple Developer Program, your app will only last for 7 days on your device. After that, you’ll have to re-deploy it to your device via Xcode. If you’re enrolled in the Apple Developer Program, you won’t have this inconvenience."
Yes
You can run flutter run --release and then select your physical device. However the app will remain on your phone for only 7 days unless you have the Apple dev account.
I'm building a React Native which works fine when I run it on the simulator. However when I package it and put it on the Apple TestFlight, the app doesn't run on devices. All I see is a black screen.
I'm using the MongoDB Realm SDK if that may hold a clue to the problem. I'm fairly new to iOS development and only have the simulator to test the app.
Any ideas on how I can resolve this? Thank you!
Update: I tested the app on an iPod touch (iOS 14) and it works. So the problem seems occur only on iPhones.
This usually means that your app has crashed...Try using componentDidCatch and show an alert or something to get the error or try using sentry.io to catch crashes
I am having a problem but can't seem to find the much-needed information online, having trawled through the internet. I have Xamarin.forms iOS app that I want to test. I cannot run iOS in windows so transferred to mac.
To inspect elements in the app, I need to open the app in Xcode or appium inspector, so I created an Xcode project from the source control containing the Xamarin.forms iOS app. I ran the project and the build was successful.
I deployed the compiled app to an iOS simulator and it deployed okay. This is where the problem is - The deployed app open in the simulator as a blank app showing a white screen with only the battery indicator and a clock showing at the top of the blank white screen. The app is not visible.
From research, I read that this blankness is due to the fact that I was trying to open a Xamarin built app in a native Xcode. In this case, how can I convert this Xamarin.forms iOS app into a native Xcode app so I can open it in an Xcode simulator? I will appreciate any helpful input
That is not how it supposed to work, You only need the mac to compile no to run the project. You need to connect your windows machine to the mac using your LAN and just send the code to it to compile it and retrieves back the code ready for you to open it in your windows machine iOS emulator. Then you can debug to inspect your elements as desired.
After building our ionic app using :
cordova build ios
I ran it in my iphone 6 using xcode. It works great. Now when I kill the app in device and click on the app icon to launch it from the device it takes longer to launch, and stays in a hanged state, unable to even inspect it using safari.
(No way related to this question, still) there occurs no issues even if the app is killed in android. It works just fine.
Has anyone experienced such an issues? Is there a way out to it?
The issue is actually discussed in Ionic Forums. It's not of logic, but when you run via Xcode, there are controls of xcode associated to the build. So once we kill the app and restart it, the controls of Xcode are disconnected, so there are 2 issues:
1) Xcode maintains some active connection which is used for debugging purposes, while launching app via xcode.
2) If that connection is broken - to mess with the phone Xcode is expected to throw an error about a process being killed or something but to block the main-thread. But that doesn't happen.
3) It has something to do with how the XCode debugger works. Either the PC or the device is trying to poll each other constantly and if we deviate from what they are expecting it causes problems on the iPhone.
Although xcode detects if the phone is disconnected, but it still fails to detect if the app was killed
Ive added a new device (iPhone 5s) to test my app using xCode 5.0.2. The app installs onto the phone without running in Xcode.
When you select the play button on Xcode, the app builds successfully and installs the app. If you open the app on the iphone it works well - when you close the app on the iPhone, Xcode crashes !!!!
Its kind of working as neat way of getting the app onto a device without load time - but I need to see my logs in Xcode as the app is running on my device.
you need to make sure that you keep the device connected to the computer and thus Xcode while running the app, any NSLog you have or error you get will show up