When scrolling through stickers in the simulator, near the end of the scroll the app crashes:
fatal error: unexpectedly found nil while unwrapping an Optional value
2017-10-14 15:59:56.331167+0100 MessagesExtension[1410:16172] fatal error: unexpectedly found nil while unwrapping an Optional value
Location: MessagesViewController.swift – line 682
let stickerURL = URL(fileURLWithPath: stickerPath!)Thread 1: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
Being new to Xcode, swift and apple in general, I’m a bit stuck…
Stackoverflow suggests a generic sort of swift error message, so no help at this point.
I’ve tried, as suggested in a previous post, to apply Target Membership of images to MessagesExtension, but that hasn’t worked.
Checked and double checked basic stuff like typos and empty strings, but no go.
Xcode Version 9.0 beta 6 (9M214v)
MacOS Sierra version 10.12.6 (16G29)
Sticker kit – updated for swift 4
iPhone 7 plus sim, but does the same in all sims I’ve tried, from iPhone 6 onwards..