MobileSMS crashes on simulator

When starting an iOS 11 iMessage App on any iOS 11 simulator from XCode 9, beta 5, MobileSMS crashes and the extension is not installed. Only after "Erase all Contents and Settings" it works. If I quit the simulator, the same problem occurs at the next start.


2017-08-12 10:23:11.386615+0200 MobileSMS[2809:551295] [Warning] Splitview controller <UISplitViewControllerClassicImpl: 0x7f8236d01bd0> is expected to have a view controller at index 0 before it's used!

2017-08-12 10:23:11.441157+0200 MobileSMS[2809:551295] [MC] Loaded MobileCoreServices.framework

2017-08-12 10:23:11.458288+0200 MobileSMS[2809:551295] [Application] Restoring application state. isComposingNew=NO groupID=D75234A9-18C0-41A2-B46F-CEC3E7CDE05F

2017-08-12 10:23:11.458395+0200 MobileSMS[2809:551295] [Application] => Looking up conversation with group ID: D75234A9-18C0-41A2-B46F-CEC3E7CDE05F

2017-08-12 10:23:11.458497+0200 MobileSMS[2809:551295] [Application] => No conversation found

2017-08-12 10:23:11.508175+0200 MobileSMS[2809:551295] [Warning] IMBalloonPluginManager. Did not find any plugin for id com.apple.messages.browser.MorePlugin

2017-08-12 10:23:11.508309+0200 MobileSMS[2809:551295] [Warning] Could not determine if com.apple.messages.browser.MorePlugin is a recent or favorite!

2017-08-12 10:23:11.508401+0200 MobileSMS[2809:551295] [Warning] IMBalloonPluginManager. Did not find any plugin for id com.apple.messages.browser.MorePlugin

2017-08-12 10:23:11.639414+0200 MobileSMS[2809:551295] IMSendProgress: 0x60c0002709c0 (delegate: 0x7f8236d00b30, context: 0x7f8238029600) is updating sending items from (null) to {

}. (removed? 0, inserted? 0, forced? 1, hasSendingMessages? 0)

2017-08-12 10:23:11.652286+0200 MobileSMS[2809:551295] +[CATransaction synchronize] called within transaction

2017-08-12 10:23:11.652452+0200 MobileSMS[2809:551295] +[CATransaction synchronize] called within transaction

2017-08-12 10:23:11.652562+0200 MobileSMS[2809:551295] +[CATransaction synchronize] called within transaction

2017-08-12 10:23:11.659212+0200 MobileSMS[2809:551295] [Warning] Invalid parameters bundleIdentifier com.apple.icloud.apps.messages.business.extension serverBag (null)

2017-08-12 10:23:11.662295+0200 MobileSMS[2809:551295] [Warning] Invalid parameters bundleIdentifier com.apple.siri.parsec.HashtagImagesApp.HashtagImagesExtension serverBag (null)

2017-08-12 10:23:11.663076+0200 MobileSMS[2809:551295] [Warning] Invalid parameters bundleIdentifier com.apple.ActivityMessagesApp.MessagesExtension serverBag (null)

2017-08-12 10:23:11.663861+0200 MobileSMS[2809:551295] [Warning] Invalid parameters bundleIdentifier com.apple.PassbookUIService.PeerPaymentMessagesExtension serverBag (null)

2017-08-12 10:23:11.665117+0200 MobileSMS[2809:551295] [Warning] Invalid parameters bundleIdentifier myApp.MessagesExtension serverBag (null)

2017-08-12 10:23:11.667125+0200 MobileSMS[2809:551295] [Warning] IMBalloonPluginManager. Did not find any plugin for id com.apple.messages.browser.MorePlugin

2017-08-12 10:23:11.667289+0200 MobileSMS[2809:551295] [Warning] Could not determine if com.apple.messages.browser.MorePlugin is a recent or favorite!

2017-08-12 10:23:11.667555+0200 MobileSMS[2809:551295] [Warning] IMBalloonPluginManager. Did not find any plugin for id com.apple.messages.browser.MorePlugin

objc[2809]: Class _MSMessageExtensionLoadingView is implemented in both /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/Messages.framework/Messages (0x13441c8c0) and /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Messages/iMessageBalloons/MSMessageExtensionBalloonPlugin.bundle/MSMessageExtensionBalloonPlugin (0x1343e8068). One of the two will be used. Which one is undefined.

2017-08-12 10:23:13.800035+0200 MobileSMS[2809:551364] [suggestions] SGDaemonConnection got an interrupt

2017-08-12 10:23:13.800045+0200 MobileSMS[2809:551450] [suggestions] SGDaemonConnection got an interrupt

2017-08-12 10:23:15.413856+0200 MobileSMS[2809:551295] API error: <CKInputView: 0x7f8236c4d000; baseClass = UIInputView; frame = (0 0; 0 0); layer = <CALayer: 0x60800043c3c0>> returned 0 width, assuming UIViewNoIntrinsicMetric

2017-08-12 10:23:15.414111+0200 MobileSMS[2809:551295] API error: <CKInputView: 0x7f8236c4d000; baseClass = UIInputView; frame = (0 0; 0 0); layer = <CALayer: 0x60800043c3c0>> returned 0 width, assuming UIViewNoIntrinsicMetric

2017-08-12 10:23:15.427808+0200 MobileSMS[2809:551295] API error: <CKInputView: 0x7f8236c4d000; baseClass = UIInputView; frame = (0 96; 375 308); layer = <CALayer: 0x60800043c3c0>> returned 0 width, assuming UIViewNoIntrinsicMetric

2017-08-12 10:23:15.428054+0200 MobileSMS[2809:551295] API error: <CKInputView: 0x7f8236c4d000; baseClass = UIInputView; frame = (0 96; 375 308); layer = <CALayer: 0x60800043c3c0>> returned 0 width, assuming UIViewNoIntrinsicMetric

2017-08-12 10:23:15.428595+0200 MobileSMS[2809:551295] API error: <CKInputView: 0x7f8236c4d000; baseClass = UIInputView; frame = (0 96; 375 308); layer = <CALayer: 0x60800043c3c0>> returned 0 width, assuming UIViewNoIntrinsicMetric

2017-08-12 10:23:15.428890+0200 MobileSMS[2809:551295] API error: <CKInputView: 0x7f8236c4d000; baseClass = UIInputView; frame = (0 96; 375 308); layer = <CALayer: 0x60800043c3c0>> returned 0 width, assuming UIViewNoIntrinsicMetric

2017-08-12 10:23:15.431455+0200 MobileSMS[2809:551295] API error: <CKInputView: 0x7f8236c4d000; baseClass = UIInputView; frame = (0 96; 375 308); layer = <CALayer: 0x60800043c3c0>> returned 0 width, assuming UIViewNoIntrinsicMetric

2017-08-12 10:23:15.431674+0200 MobileSMS[2809:551295] API error: <CKInputView: 0x7f8236c4d000; baseClass = UIInputView; frame = (0 96; 375 308); layer = <CALayer: 0x60800043c3c0>> returned 0 width, assuming UIViewNoIntrinsicMetric

2017-08-12 10:23:15.432259+0200 MobileSMS[2809:551295] API error: <CKInputView: 0x7f8236c4d000; baseClass = UIInputView; frame = (0 96; 375 308); layer = <CALayer: 0x60800043c3c0>> returned 0 width, assuming UIViewNoIntrinsicMetric

2017-08-12 10:23:15.432452+0200 MobileSMS[2809:551295] API error: <CKInputView: 0x7f8236c4d000; baseClass = UIInputView; frame = (0 96; 375 308); layer = <CALayer: 0x60800043c3c0>> returned 0 width, assuming UIViewNoIntrinsicMetric

2017-08-12 10:23:15.439957+0200 MobileSMS[2809:551295] API error: <CKInputView: 0x7f8236c4d000; baseClass = UIInputView; frame = (0 96; 375 308); layer = <CALayer: 0x60800043c3c0>> returned 0 width, assuming UIViewNoIntrinsicMetric

2017-08-12 10:23:15.440228+0200 MobileSMS[2809:551295] API error: <CKInputView: 0x7f8236c4d000; baseClass = UIInputView; frame = (0 96; 375 308); layer = <CALayer: 0x60800043c3c0>> returned 0 width, assuming UIViewNoIntrinsicMetric

2017-08-12 10:23:15.442753+0200 MobileSMS[2809:551295] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'attempt to scroll to invalid index path: <NSIndexPath: 0x608000638d60> {length = 2, path = 0 - 9223372036854775807}'

*** First throw call stack:

(

0 CoreFoundation 0x000000010d31626b __exceptionPreprocess + 171

1 libobjc.A.dylib 0x000000010cc78f41 objc_exception_throw + 48

2 CoreFoundation 0x000000010d38aba5 +[NSException raise:format:] + 197

3 UIKit 0x0000000108c628d4 -[UICollectionView _contentOffsetForScrollingToItemAtIndexPath:atScrollPosition:] + 212

4 UIKit 0x0000000108c6334a -[UICollectionView _scrollToItemAtIndexPath:atScrollPosition:animated:] + 70

5 ChatKit 0x000000010bc15975 -[CKBrowserSwitcherViewController(XCODE_DEVELOPMENT_SUPPORT) scrollCollectionViewToPlugin:] + 240

6 ChatKit 0x000000010bbb2042 -[CKChatInputController _launchAppExtensionForDebugging] + 682

7 CoreFoundation 0x000000010d2b211c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12

8 CoreFoundation 0x000000010d2b20af ___CFXRegistrationPost_block_invoke + 63

9 CoreFoundation 0x000000010d2b92ac __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12

10 CoreFoundation 0x000000010d29dadb __CFRunLoopDoBlocks + 203

11 CoreFoundation 0x000000010d29d8db __CFRunLoopRun + 2875

12 CoreFoundation 0x000000010d29cb29 CFRunLoopRunSpecific + 409

13 GraphicsServices 0x000000010fdd99c6 GSEventRunModal + 62

14 UIKit 0x00000001081c69a4 UIApplicationMain + 159

15 MobileSMS 0x0000000107a5c2ca MobileSMS + 135882

16 libdyld.dylib 0x000000010e738621 start + 1

17 ??? 0x0000000000000001 0x0 + 1

)

libc++abi.dylib: terminating with uncaught exception of type NSException

Replies

What white eclipse and where? I'm lost.

Same here. Just tested with XCode 9.1. I created a new project using the iMessge app template, crashes right away in any simulator...


2017-11-06 06:59:33.134838-0800 MobileSMS[91803:7237651] 
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', 
reason: 'attempt to scroll to invalid index path: <NSIndexPath: 0x604000225480>{length = 2, 
path = 0 - 9223372036854775807}'

I've been having this same issue all day. Tried everything, to no avail. My extension won't even install on the Simulator so that I could manually enable it, as some others have suggested in this thread. I upgraded XC from 9.0 to 9.1 in hopes it would fix it but no luck.


Currently running: XCode Version 9.1 (9B55)

I have the same issue, new app and it crashes. did you solve this issue yet?

I'm currently running with this fix in Xcode pre 9.0.1, therefore very interested in hearing how a solution going forward looks like.