Simulator crashes when loading Stickers

Have attempted to build a sticker pack for iMessage following Apple's guidelines. I have verified the sticker images are the correct dimensions, format, and well below the file size threshold. I am unable to test the sticker pack in simulator because iMessages on simulator crashes every time I attempt to build & run the sticker pack.


When I build the project and run it on my physical iPhone 7 (NOT simulator) the sticker pack loads and functions perfectly.


However when I try to run the project on simulator I see the icon for the project display in the lower portion of iMessage and then Imessage crashes. This crash happens on any iPhone/iPad in simulator. I receive a system error: "MobileSMS quit unexpectedly..."


I am running Xcode version Version 9.0.1 (9A1004) on Mac OS High Sierra 10.13

Full error report from xcode below (NOTE: I did not write or alter any code. This project only uses the default code generated byXcode for a sticker project).


2017-10-24 07:29:38.368337-0700 MobileSMS[1282:60583] [Warning] Splitview controller <UISplitViewControllerClassicImpl: 0x7f9d82602cd0> is expected to have a view controller at index 0 before it's used!

2017-10-24 07:29:38.443116-0700 MobileSMS[1282:60583] [MC] Loaded MobileCoreServices.framework

2017-10-24 07:29:38.465400-0700 MobileSMS[1282:60583] [Application] Restoring application state. isComposingNew=NO groupID=(null)

2017-10-24 07:29:38.528931-0700 MobileSMS[1282:60583] [Warning] IMBalloonPluginManager. Did not find any plugin for id com.apple.messages.browser.MorePlugin

2017-10-24 07:29:38.529157-0700 MobileSMS[1282:60583] [Warning] Could not determine if com.apple.messages.browser.MorePlugin is a recent or favorite!

2017-10-24 07:29:38.529278-0700 MobileSMS[1282:60583] [Warning] IMBalloonPluginManager. Did not find any plugin for id com.apple.messages.browser.MorePlugin

2017-10-24 07:29:38.660833-0700 MobileSMS[1282:60583] IMSendProgress: 0x60c00046af40 (delegate: 0x7f9d82602a20, context: 0x7f9d83832400) is updating sending items from (null) to {

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

2017-10-24 07:29:38.675849-0700 MobileSMS[1282:60583] +[CATransaction synchronize] called within transaction

2017-10-24 07:29:38.675992-0700 MobileSMS[1282:60583] +[CATransaction synchronize] called within transaction

2017-10-24 07:29:38.676141-0700 MobileSMS[1282:60583] +[CATransaction synchronize] called within transaction

2017-10-24 07:29:38.684105-0700 MobileSMS[1282:60583] [Warning] Invalid parameters bundleIdentifier com.apple.ActivityMessagesApp.MessagesExtension serverBag (null)

2017-10-24 07:29:38.691117-0700 MobileSMS[1282:60583] [Warning] Invalid parameters bundleIdentifier com.hifidesign.Tennis-Stickeez.StickerPackExtension serverBag (null)

2017-10-24 07:29:38.693316-0700 MobileSMS[1282:60583] [Warning] Invalid parameters bundleIdentifier com.apple.siri.parsec.HashtagImagesApp.HashtagImagesExtension serverBag (null)

2017-10-24 07:29:38.694145-0700 MobileSMS[1282:60583] [Warning] Invalid parameters bundleIdentifier com.hifidesign.Tennis-Anyone.StickerPackExtension serverBag (null)

2017-10-24 07:29:38.695082-0700 MobileSMS[1282:60583] [Warning] Invalid parameters bundleIdentifier com.apple.icloud.apps.messages.business.extension serverBag (null)

2017-10-24 07:29:38.697754-0700 MobileSMS[1282:60583] [Warning] IMBalloonPluginManager. Did not find any plugin for id com.apple.messages.browser.MorePlugin

2017-10-24 07:29:38.697996-0700 MobileSMS[1282:60583] [Warning] Could not determine if com.apple.messages.browser.MorePlugin is a recent or favorite!

2017-10-24 07:29:38.698350-0700 MobileSMS[1282:60583] [Warning] IMBalloonPluginManager. Did not find any plugin for id com.apple.messages.browser.MorePlugin

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

2017-10-24 07:29:42.434946-0700 MobileSMS[1282:60583] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'attempt to scroll to invalid index path: <NSIndexPath: 0x60000022bf20> {length = 2, path = 0 - 9223372036854775807}'

*** First throw call stack:

(

0 CoreFoundation 0x000000010f7551cb __exceptionPreprocess + 171

1 libobjc.A.dylib 0x000000010ec71f41 objc_exception_throw + 48

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

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

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

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

6 ChatKit 0x000000010dd9cb0f -[CKChatInputController _launchAppExtensionForDebugging] + 682

7 CoreFoundation 0x000000010f6f107c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12

8 CoreFoundation 0x000000010f6f100f ___CFXRegistrationPost_block_invoke + 63

9 CoreFoundation 0x000000010f6f820c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12

10 CoreFoundation 0x000000010f6dca3b __CFRunLoopDoBlocks + 203

11 CoreFoundation 0x000000010f6dc83b __CFRunLoopRun + 2875

12 CoreFoundation 0x000000010f6dba89 CFRunLoopRunSpecific + 409

13 GraphicsServices 0x000000011224e9c6 GSEventRunModal + 62

14 UIKit 0x000000010ba2723c UIApplicationMain + 159

15 MobileSMS 0x000000010988b2b6 MobileSMS + 135862

16 libdyld.dylib 0x0000000110c8dd81 start + 1

17 ??? 0x0000000000000001 0x0 + 1

)

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

Replies

Take a look at this thread and this thread. It seems like this issue is happening to a lot of people, myself included. The suggested fixes in those threads do seem to work for some people.

I'm having the same issue, though I can't get the sticker pack to open on my devices either. The fixes posted by others don't work. The app isn't even transferring to the device at all, so I can't just go into the elipse menu and enable it.


What's so frustrating about this is that for stickers the only thing I really need to build to the device/sim for is to make some screenshots. The app builds and gets approved by Apple just fine.

Yeah I've got the same thing. Xcode Version 9.1 (9B55), trying to use iPhone X simulator, but also happens on the other simulators. None of the suggestions fixed my issue.

This should be addressed in iOS 11.2 beta (included in Xcode 9.2 beta)

Awesome! Thank you.

This one helped: https://developer.apple.com/forums/thread/90986