In iOS 15, when the app is restarted, it immediately crashes.

After the iOS 15 update, the following process causes the app to die.

  1. Go to the home screen while running the app
  2. Completely quit by removing the background state of the app
  3. Start by pressing the icon on the home screen
  4. As soon as the app is opened in the state it was in when the previous home screen was moved, there is a symptom that the app dies.

There was no such symptom until iOS 14.

Is this symptom a bug in iOS 15 ? Or is there a new option for background state of apps in iOS 15?

After the iOS 15 update, the following process causes the app to die.

Is this your app? Or an app from some other third-party developer?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I have same issue in my iPhone12 iOS 15.0 (other device not happened), it happened in all apps, include those Apple's app (AppStore, Notes, Weather etc...)

Suin, If you’re having problems with Apple apps, that’s something you need to discuss with Apple Support.


Kim Ju Young wroet:

Not only our app, but also other company/individual apps have the same symptoms.

You mean apps from the App Store? Or other Development- or Enterprise-signed apps?

If you’re having problems with other app from the App Store, contact the app’s developer. However, if you’re having problems with a Development- or Enterprise-signed app that you created, I can help you here.

In that case, when you app crashes, does it generate a crash report? If so, please post an example here.

For advice on how to post a crash report, see Posting a Crash Report.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

We experience the same. The app sometimes crash on startup, and then work again just afterwards.

The app shows splashscreen, then quickly fades to a blurred home screen and then disappears.

Same situation happens on my iPhoneXS max with iOS15.0.2 to 15.1, when iPhone6S with iOS15.0.1 does not have such problem.

I can watch this behavior by just deploy my app on a phone (device) with iOS 15. My app never crashes on iOS 14.8 but move it to iOS 15 the app crashes sometimes. Always after reactivating from background. This is monitored by many testers which stated that this happens also to many other apps. There is something changed by Apple and very nice to see that there is no answer from Apple here.

there is no answer from Apple here.

What sort of answer were you expecting? A month ago I wrote:

In that case, when you app crashes, does it generate a crash report? If so, please post an example here.

No one responded with a crash report, which makes it hard for me to offer any insight into this issue.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Hello everyone.

I have a similar issue in an iOS react-native app after iOS 15 upgrade but with not a crash.

If someone opens the app after ~1 hour from the last time he/she opened it, the app skips the SplashScreen and after that nothing renders correctly. The positioning and order of components are wrong.

This happens only the first time after ~1hour of app being closed.

I'm experiencing the same issue, I think. I'm testing with a simple app with a simple fullscreen map... If I launch the app on my iPhone connected by cable with my Mac everything is ok. If I launch it "disconnected" I have this crash.

libc++abi: terminating with uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument

dyld4 config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib

terminating with uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument

If I launch it "disconnected" I have this crash.

OK, something is wonky here. Your text mentions a mutex lock failed error but the crash report you posted has a backtrace like this:

Last Exception Backtrace:
0   CoreFoundation  … __exceptionPreprocess + 216
1   libobjc.A.dylib … objc_exception_throw + 56
2   CoreFoundation  … __CFDictionaryCreateGeneric + 0
3   UIFoundation    … UINibDecoderDecodeObjectForValue + 408
4   UIFoundation    … UINibDecoderDecodeObjectForValue + 1252
5   UIFoundation    … -[UINibDecoder decodeObjectForKey:] + 308

which clearly indicates a UIKit nib decoding issue. How is this crash report related to the mutex lock failed error?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

You can actually reproduce it with any app.

So, you can reproduce it using only built-in apps? If so, that’s clearly a bug in the OS (there’s no one else to blame! :-) and I encourage you to file it as such.

Please post your bug number, just for the record.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

We are experiencing the same issue. We had deployed an app last year. It's been working fine till the end of November when our client reported crashes on the app since they upgraded to iOS 15.1.1. According to them, the app was working fine on iOS 14.8. For testing purposes, we kept one of our devices to 14.2 and enrolled the other to the 15.2 beta. The results are, the app runs smoothly on 14.2 and even on 15.0. But on 15.1.1 and 15.2, there are crashes and they are mainly caused by NSPersistentStoreCoordinator where we have been dealing with privateConcurrency contexts. The crashes we mainly experience on latest OS say EXC_BAD_ACCESS. I do not know how this is linked with the crashes. Still waiting for some workaround. Anybody facing the same issue??

I'm running into the same issue app is crashing on IOS 15 when launch. any solution?

is your phone language English?

i have noticed that if changing device language , this issue no longer Exists!

So we are finally out of this problem. The issue was the CoreData thread violations. Thanks to the community's suggestion, we passed the -com.apple.CoreData.ConcurrencyDebug 1 argument and this helped figuring out all the violations which caused multiple crashes. After adding appropriate concurrency queues to the NSManagedObjectContext, we were able to run the app flawlessly on iOS 15.x.

So…can you explain how to correct this to a 5th grader. I’m not very tech savvy.

I'm facing the same issue on IOS 15. And I found that --- SIGPIPE Crash, if your project contains Socket ,

#import <UIKit/UIKit.h>

#import "AppDelegate.h"

//#import "MatrixHandler.h"

#import <signal.h>

int main(int argc, char * argv[]) {

    NSString * appDelegateClassName;

    @autoreleasepool {

        struct sigaction sa;

        sa.sa_handler = SIG_IGN;

        sigaction(SIGPIPE, &sa, 0);

        // Setup code that might create autoreleased objects goes here.

        appDelegateClassName = NSStringFromClass([AppDelegate class]);

    }

    return UIApplicationMain(argc, argv, nil, appDelegateClassName);

}

We have the same problem and we use Scenes to our react-native project in order to implement CarPlay for iOS devices.

Could this be related to this issue?

Well the problem for us it seems to be that we are using "Scenes" in our app in order to implement the "PointOfInterest" template for the CarPlay. If we exclude it the app launches just fine. But using "Scenes", after ~30min (app closed) the app launches but nothing renders correctly in terms of positioning.

In iOS 15 started a prewarming of apps in order to launch faster (https://developer.apple.com/documentation/uikit/app_and_environment/responding_to_the_launch_of_your_app/about_the_app_launch_sequence?language=objc#3894431) and we think this triggers these bugs.

Any idea on this ?

We finally manage to solve it. It was a problem because of using 'SceneDelegate' (for multiple scenes support) and iOS15 'prewarming' new feature. Solved by transferring the RTCBridge protocol from AppDelegate -'didFinishWithLaunchOptions' to SceneDelegate - 'willConnectToSession'.

Devices with older round home buttons seem to be less prone to the above symptoms. And it seems that the above symptoms occur more often on devices that do not have a circular home button. (This usually happens on notch devices)

Sometimes the app appears in the list again after completely closing the app in the background state.

Hello everyone,

it seems that there is a solution which is amazing but, is there any way that a non technical iPhone user can fix it ?

Thank you, Dragos

This is happening on all iOS 15 apps.

  1. Open the app
  2. Close the app and quickly reopen. This will cause the app to crash if you do it fast enough. It seems to work as expected if you wait at least one second before reopening.

To resolve this issue close ALL background apps so the "recent apps" are empty. When you do this, the problem in step 2 does not happen. To "re-activate" the crash, open 5 to 10 apps and put them in the background. All apps will then continue to crash when re-opening.

I noticed this. If at least one (!) other app is running in the background:

  1. Open your app
  2. Kill/close your app
  3. Quickly re-run your app
  4. Almost everytime app crashes

This has to be iOS 15 bug.

In iOS 15, when the app is restarted, it immediately crashes.
 
 
Q