[Apple rejecting release] Investigate splash screen issue with apple test credentials
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
- On testflight iOS, log into the account shown here
Expected Result:
- The user should be able to login and see the chats normally
Actual Result:
Instead, you'll just see a splash screen and nothing else.

Workaround:
N/A
Platform:
Where is this issue occurring?
- iOS
Seems to work fine on staging web newDot
Version Number: 1.0.84.5 Logs: https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation Expensify/Expensify Issue URL:
Triggered auto assignment to @arielgreen (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.
:wave: Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
- Identify the pull request that introduced this issue and revert it.
- Find someone who can quickly fix the issue.
- Fix the issue yourself.
Triggered auto assignment to @Julesssss (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
@chiragsalian should this be labeled External?
Nope, usually deploy blockers are investigated internally.
So what i tried,
- I can reproduce the issue sometimes (like 1 in 4 maybe) using testflight.
- I have not been able to reproduce the problem on staging web newDot.
- I tried to reproduce the error on an iOS simulator in hopes that i could get some logs but it works without any issue on the simulator (pointed env to staging for testing)
- Tried to reproduce the error on my physical iOS phone (assuming that maybe the issue only happens on a physical phone). But I could not reproduce the issue on my phone too.
I seem to only sometimes get the issue on testflight. Unsure what to do next or if there is some way we can get the error logs from testflight. Unfortunately, I'll have to unassign myself from this issue since I'm OOO tomorrow.
:wave: Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
- Identify the pull request that introduced this issue and revert it.
- Find someone who can quickly fix the issue.
- Fix the issue yourself.
DeployBlockerCash issues should not be unassigned per the comment above. Reassigning to @Julesssss since he was the initial assignee.
This is a tricky one.
Locating the offending PR is unlikely due to the fact that there are over 80 PRs in this deploy checklist and that the issue is only reproducible about 1/4 times. Usually, I would git-bisect to locate the problem, but this method would take days as we would need to compile an iOS build and run it multiple times to check each individual PR.
Instead, I will focus on retrieving logs for now.
I am not able to reproduce on a physical Android device, pointing to staging with the same credentials and version.
Log search was unfruitful due to the number of logs the test user account generates. My next plan was to reproduce it, noting the time of the event so that I could locate the logs, but we have not been able to reproduce the issue since then.
I won't have access to a physical iOS test device until Monday, so @johncschuster kindly ran some tests for me. He logged into the mentioned user account 5 times and didn't once see the issue. He also tried logging in after killing the app, but this also worked successfully. The device was an iPhone 12 Pro Max, running iOS 14.7.1
But I could not reproduce the issue on my phone too. Unsure what to do next or if there is some way we can get the error logs from testflight
TestFlight won't be useful unfortunately as this wasn't a Crash. Our best bet would be LogSearch (no luck here), or device JS logs (not possible currently as we cannot reproduce locally).
At this point, I don't think this should remain a deploy blocker. As far as we know it occurs rarely (1/4 times) on login (a rare event for existing users), on a single platform (not Android/Web/Desktop/mWeb), possibly for a single user.
I'm going to remove thedeployBlocker label, drop the priority to Daily, and will mention this issue in #QA and ask Applause to test it too. If anyone else is able to reproduce in the meantime then we should take another look. Tagging @Expensify/mobile-deployers in case anyone disagrees with removing the label
I thought this is literally a deploy blocker deemed by Apple? They won't approve the app until we fix it
Ah I didn't see that, is there another issue or thread for this?
Slack thread: https://expensify.slack.com/archives/C07J32337/p1628644892166500
Thanks. Okay, so that changes things 😞
Given that we must solve this I see two paths forward here:
- Compile a release build, run it on a physical iOS device until the issue is reproduced and hope that device logs/Logsearch help us track down the issues
- Use
git-bisectto isolate the PR which introduced this issue and revert
We should also confirm that the issue exists on other accounts. If the issue is isolated to the Apple test account then A) this might give us hints towards the issue, and B) we might be able to provide alternate credentials to Apple to get around the rejection
As I mentioned above, I'm away from my physical iOS test device until next week (plus I missed that this was not a regular deployblocker and it is quite late here) but I continue this investigation first thing on Monday.
If any mobile deployer is able to make a start on any of these paths forward in the meantime that would be super helpful.
Linking this previous race condition PR, which may provide a good starting point (as Chirag pointed out)
So far today I have not been able to reproduce the issue once in 10's of attempts. Here's the build info:
Device: Physical iPhone 7
iOS Version: 13.3
Build flavor: Release
App version: v1.0.85-6
Environment: Staging/prod
I'm now reverting to the reported version for further testing -- it's unlikely, but perhaps the conditions for this potential race condition have simply ceased to exist with additional changes.
The only odd thing I have noticed so far is that we're subscribing to UA twice in very quick succession due to the main App component updating. But this occurs even if we make it past the splash screen.
The latest TestFlight build I can update to is 1.0.83-0, we should also be seeing the issue on this version as it was originally reported on 1.0.82-7.
But I didn't see the issue once in 10 attempts with the Apple credentials, or with 5 attempts on two other user accounts of mine (one with few conversations, one with many).
@Julesssss This was not reproducible on our side during regression 🤔 I just asked a tester to double check and he was able to log in without issues.
Thanks, @isagoico. Would you mind sharing the iOS model and version that was tested? And just to confirm, was it attempted a few times?
At this point, I think the only possibilities are that this is specific to certain iOS versions, or that it was a temporary issue that somehow occurred during two Apple reviews 😕