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

I have the same problem. Did not solve it, yet.

Same problem here.

What worked for me: clicking on the white elipses icon, selecting "edit," and then manually enabling our extension. After doing that, the extension launches from Xcode without issue.

Yes, this also works for me. Thanks!

Thank you so much for posting this. I have been dealing with this issue and couldn't figure out what the problem was.

Sorry but what and where is white elipses icon? Totally no idea what it is.

nink means the More icon (the oval icon with the 3 dots that shows a list of iMessage apps). As he said, tap on Edit and enable your extension. That fixed it for me too. Thanks!

Same problem 😟

Hi, I don't see that oval icon with 3 dots. I've looked at the entire page, kinda like hunting for easter eggs...


The closest I've come to an edit is this from the top menu:

there's a play button / a stop button / then the list of sticker pack extensions....

I've clicked on the list of extensions and the only edit button I see is for editing a scheme.


I've also tried adding my iPad by clicking on "Add Additional Simulators", to no avail. Running my sticker pack this way still makes everything crash.


Where can I find this elusive oval icon with 3 dots.


Your help is much appreciated. 🙂

Hello there,


The person above you was referring to the oval icon with the 3 dots within Simulator itself, as it would appear on the iPhone. 🙂 Please see the images here: https://imgur.com/a/BAF8I

The button is not on Xcode but on the simulator. In iMessage you'll see the usual horizontal scroll at the bottom featuring any iMessage apps that are installed on the device plus the "Recent" button and the "More" button (if you try to scroll the list it'll become bigger and you'll see that text in addition to the 3 dots icon). Tapping on the "More" button will show the Edit button and you'll be able to enable your app.

This solution not only works on similator but also works on real devices as well. Thanks to all!

This doesn't appear to work for me on device while running in Xcode. I can get the more icon elipses to see my imessage extension after the failed launch, but can't debug. Any thoughts?

Unfortunately, this work-around no longer works after the recent upgrade to Xcode 9.0.1. Erasing the contents results in no apps found in "Recents" and when relaunched with a rebuild, the Simulator simply crashes, again. Something is very wrong in this update. I can't even get older projects that have already been archived, submitted and approved, to display the Simulator without crashing.

Worked for me, 10x

XCode 9.0.1

MobileSMS crashes on simulator
 
 
Q