iOS app crash in TestFlight after some weeks working fine - react-native

have you had the following error in TestFlight? Basically, we have test versions in TestFlight that when we launch them to external testers work. But it has happened to us 2 times that after a week or two, that version stops working.
Basically, the app won't open, won't even show the splash, and crashes.
Last week the app stopped working for all testers, we updated to a new version and it started working fine for them again. But yesterday the version that already works previously began to fail them again.
Today, I just generated a new version with no code changes and it works. But I'm afraid it will eventually start to fail.
When I say that it fails, it is that the app icon is touched, it tries to open, but it does not open and it crashes.
For example, now the new version works fine for me, but if I go to TestFlight and install a previous version that worked fine on my phone 2 days ago, it no longer works for me.
Any idea what could be going on, guys?
Maybe some certificate expires or I don't know, any idea is welcome.
I'm using expo managed workflow and eas build to generate the iOS app.
Something that happens with the versions that start to fail is that when they are installed, the first time it does not fail. But if I completely close the app and reopen it again, it doesn't open anymore, and the crash occurs.
We're using Sentry, but we don't have any issues. But I have this crash in TestFlight errors.
Thank you in advance for all your comments or ideas.

Related

Expo React Native building apk

I have been trying to build my apk today but I always face this problem. After completing the build, i download it to my phone and i cannot open it. However, this was not the case 2-3 days ago. I had no difficulties or errors in Run expo doctor. I was able to download the apk to my device and test my app.
I am not really sure what to do and any help would be appreciated.
This is what I got after running npx expo doctor:
I managed to solve my problem. I used Android Studio's logcat feature and when I ran the app on the emulator I found the issue - it was related to admob. At this point, I dont need admob, so I deleted its folder from my project and everything was fine after this.
Running expo doctor usually ends up in flagging what dependency needs to be upgraded if the jump to automatically update it goes into the majors like in your case from 4 to 5.
Maybe try upgrading #expo/config-plugins by using expo upgrade or commands from your preferred package manager.
If that’s impossible due to other packages depending on the specific version, maybe consider adding overrides in your package.json. Here is a helpful article about that.
In my experience this may not be the only reason for the crash of the app. Try running the app consecutively about 3 or 4 times even if it crashes and I believe Android will prompt you to submit a bug report and maybe show you the call stack it failed at.
Let us know how it goes.

Application crash immediately when deploy to iPhone running iOS 12 from Xcode 10

App submitted to store one year ago. It worked fine up to iOS 11 but in iOS 12 the app is immediately crashing even without launching. I tried to debug the issue but I couldn't, because before didFinishLaunchingWithOptions, the app crashes and I did not find any error logs.
It is happening in iOS 12 only, working fine with below iOS 12.
How can I debug this issue?
Have you correctly installed your XCode Update? Sometimes you have to install cli
(that is needed e.g. by mtouch if XCode links your assemblies) or other components by hand.
Are you're credentials (certificate) still valid? or otherwise asked: did you build another app since this happens?
Have you set a breakpoint right in you app delegate and step throw until the app crashes? Can you show logs? If you don't have some, than create them by yourself. Do exception handling and log the exceptions. Or otherwise said: More information please.

Testflight not installing completely

I'm currently beta testing one of my apps via testflight but im having problems with the installation process.
Everything works fine up to the point, when one of my testers tries to install the app. After you tap install the downloading process stops at about 80%.
If you minimize Testflight the app appears to be installed and can be used but the UX is poor.
In Testflight the app remains in the 80% install state:
If i install my app via xcode everything runs fine under iOS8.
In my case, I discovered on a hunch that the CFBundleVersion should not contain leading zeros after a period.
15.06011812 should be 15.6011812
Once we fixed that, the installs completed in the UI of TestFlight (then the switch for the watch app showed up and worked).
Afterward, I found this answer searching for 'testflight progress'.
TestFlight thinks that it never finished installing because the CFBundleVersion in the installed app's Info.plist contains the leading zero which makes it an older version of the app. When I quit TestFlight and relaunched, it thought that there was an update available.
Until I tried installing the Watch App this was just an annoyance in the UI, but then it was preventing me from seeing the switch to install the Watch App.

Xcode crashes immediately before running on device

(I just noticed this error and fixed it myself. Nonetheless I think it would be helpful to share the fix.)
My Xcode crashed every time when it finished compiling the app and tried to run on a device (iPhone, iPad). Nothing happened on the device. However, Xcode didn't crash the last time I ran the app (about 3 days earlier).
The app ran fine with Simulator though.
So the reason was that my developer certificate has just expired yesterday. After re-requesting the certificate and importing it, the app runs again on device. Sadly Xcode didn't issue any error messages about it.

Cannot Install into iPhone Simulator

I've got an Xcode project that I've been working on over the past few weeks.
I just made some changes to an embedded framework that I'm working on (recompiled, to be specific) now, however, I am unable to launch the application in the simulator.
The app hangs on "Attaching to [app name]," if I have a debugger on. If I don't have a debugger on, Xcode just says the app has finished running.
There is no icon installed on the device.
Here's what I've done so far:
Restarted
Reset simulator
Clean and build
Deleted derrived data
I cannot install onto a device either, but then I get an error:
Error launching remote program: No such file or directory (/Users/peter/Library/Developer/Xcode/DerivedData/x-gtwuuwmavjonyrcxjmpcletdpyjw/Build/Products/Debug-iphoneos/x.app/x).
Oddly enough, what worked was installing another app in the sim (just launched another project and ran it) and then launching the other app in the sim.
I'm not sure what the issue was, but I tried it on two computers and it was hanging on each, so it was related to the project rather than the simulator. There's an issue to think about...