My app crashes when not launched from XCode

Until today was running fine, with and without Xcode. But then I upgraded the device to iOS 14.2 beta and Xcode 12.1 to test some stuff. Then I ran the app with Xcode without problems but when I tried to run it without Xcode attached it simply crashes.

I’m guessing any of my 3rd party libraries might not be compatible with the coming iOS 14.2 ? but then how do I find which one?

How can I debug this if just happens when the app is not debugging?

Thanks in advance.

EDIT: found the way to get the crash log using Xcode:

Incident Identifier: 457D137B-4C71-4234-B00C-A7FCFB54B83E
CrashReporter Key: 8209fa6a3cb483ad2e2f83c4080e8b5156eec66d
Hardware Model: iPhone11,8
Process: city [744]
Path: /private/var/containers/Bundle/Application/BB8D479E-0C9F-4A22-ABB0-6E4371CA3CA3/city.app/city
Identifier: com.myapp.app
Version: 836 (0.97)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.myapp.app [572]

Date/Time: 2020-11-04 17:38:27.4634 +0100
Launch Time: 2020-11-04 17:38:07.3599 +0100
OS Version: iPhone OS 14.2 (18B91)
Release Type: User
Baseband Version: 3.01.01
Report Version: 104

Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d
Termination Description: SPRINGBOARD, <RBSTerminateContext| domain:10 code:0x8BADF00D explanation:process-launch watchdog transgression:
application<com.myapp.app>:744 exhausted real (wall clock) time allowance of 20.00 seconds | ProcessVisibility: Foreground | ProcessState: Running | WatchdogEvent: process-launch | WatchdogVisibility: Foreground | WatchdogCPUStatistics: ( | “Elapsed total CPU time (seconds): 9.720 (user 9.720, system 0.000), 8% CPU”, | “Elapsed application CPU time (seconds): 0.105, 0% CPU” | ) reportType:CrashLog maxTerminationResistance:Interactive>
Triggered by Thread: 0

Seems my problem is related to this:

(I hope)

same for me :frowning:

are you building for iOS ?
which iOS version?

try the workaround mentioned here:

https://issuetracker.unity3d.com/issues/ios-unityframework-with-3rd-party-plugins-triggers-watchdog-termination-after-launch

thx it’s work for my app :wink:

1 Like

I got my app rejected from the app store today because of this. :-/

I’m relatively new developing for iOS, we still haven’t released, but seeing this I will be testing on iOS beta versions from now on.

Were you not able to reproduce prior to submitting to the App Store?

Well, I would have been if I had noticed that iOS 14.2 was already out. On my device, I didn’t get any update message yet (although the update was available since 5 days according to Google). It seems as if Apple is rolling this release out in a staggered manner. Hence, my devices were still on 14.1, where the problem did not occur. The first time I got aware of this problem was when I tried to push a new version to the store and it crashed on the reviewer’s device. I also read above that on some devices, the problems don’t even show up if you start the app from Xcode - only if you run a standalone build. Not sure about this, though, since I haven’t tried it out.

Besides, please note that also existing apps in the app store are affected, so I had to submit an emergency hotfix, since all users on iOS 14.2 experienced these crashes right away. I am actually wondering why this hadn’t been noticed in Unity’s own tests? :wink:

This happend to when I updated to iOS 15 and therefore the newest version of Xcode. Any solutions that you might know of?