[TIMOB-26628] iOS 11.0: App crashes on launch
| GitHub Issue | n/a | 
|---|---|
| Type | Bug | 
| Priority | Critical | 
| Status | Closed | 
| Resolution | Fixed | 
| Resolution Date | 2018-12-05T20:06:00.000+0000 | 
| Affected Version/s | n/a | 
| Fix Version/s | Release 7.5.1 | 
| Components | iOS | 
| Labels | core, defect, ios, regression | 
| Reporter | Joe Finnigan | 
| Assignee | Gary Mathews | 
| Created | 2018-12-04T09:11:11.000+0000 | 
| Updated | 2018-12-10T23:38:20.000+0000 | 
Description
	When launching any app on iOS 11.0 specifically, the app crashes with the following exception:
[ERROR] The application has crashed with an uncaught exception 'NSInvalidArgumentException'.
[ERROR] Reason:
[ERROR] -[TiRootViewController setNeedsUpdateOfHomeIndicatorAutoHidden]: unrecognized selector sent to instance 0x102814e00
[ERROR] Stack trace:
[ERROR] 0   CoreFoundation                      0x0000000182bc4d74 <redacted> + 148
[ERROR] 1   libobjc.A.dylib                     0x00000001820d8528 objc_exception_throw + 56
[ERROR] 2   CoreFoundation                      0x0000000182bd2218 <redacted> + 0
[ERROR] 3   UIKit                               0x000000018ca9e874 <redacted> + 296
[ERROR] 4   CoreFoundation                      0x0000000182bca708 <redacted> + 1380
[ERROR] 5   CoreFoundation                      0x0000000182ab035c _CF_forwarding_prep_0 + 92
I think I've managed to patch this issue using the following in TiRootViewController.m
#if IS_XCODE_9 if ([TiUtils isIOS11OrGreater]) { if ([self respondsToSelector:@selector(setNeedsUpdateOfHomeIndicatorAutoHidden)]) { [self setNeedsUpdateOfHomeIndicatorAutoHidden]; } }[~jfinnigan], Does this only occur on a physical device or do you know if it's specifically 11.0.0? I'm using an 11.0.1 simulator (it's the closest I can get from XCode), and can't reproduce the issue. I'll ask the team to try if they have an iOS 11.0.0 device
master: https://github.com/appcelerator/titanium_mobile/pull/10510
7_5_X: https://github.com/appcelerator/titanium_mobile/pull/10511
Verified the fix in SDK 7.5.1.v20181210141225 & 8.0.0.v20181210140414. Closing.