Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

Unable to locate my stickers in message app after installed my app

My sticker app was rejected when I submitted it to App Store Connect.

Reason: "We were unable to locate your stickers in message app after installed your app."

When I checked on an iOS18 device, this was correct. However, my stickers is visible when I dragged the half-modal(like sheetPresentationController) part.

I hope what I need to do to get the stickers to display initially.

My code(Xcode16.2)


class StickerViewController: MSStickerBrowserViewController {
    
    var stickers = [MSSticker]()
    
    override func viewDidLoad() {
        super.viewDidLoad()
        loadStickers()
    }
    
    override var stickerSize: MSStickerSize {
        get {
            return .small
        }
    }
    
    func loadStickers() {
        
        var imageSetPath = "en"

        for index in 1...20 {
            var strIndex = ""
            strIndex = "stmp" + String(index) + imageSetPath
            createSticker(assetLocation: "\(strIndex)", assetDescription: "\(strIndex)")
        }
    }
    
    func createSticker(assetLocation: String, assetDescription: String) {
        guard let path = Bundle.main.path(forResource: assetLocation, ofType: "png") else {
            return
        }
        let url = URL(fileURLWithPath: path)
        
        do {
            let sticker = try MSSticker(contentsOfFileURL: url, localizedDescription: assetDescription)
            stickers.append(sticker)
        } catch {
            print(error)
        }
    }
    
}

extension StickerViewController {
    
    override func numberOfStickers(in stickerBrowserView: MSStickerBrowserView) -> Int {
        return stickers.count
    }
    
    override func stickerBrowserView(_ stickerBrowserView: MSStickerBrowserView, stickerAt index: Int) -> MSSticker {
        return stickers[index]
    }
}

Have you tried using the stickers in real conversations, then checking back in the recents tab? It is also to test this without the debugger as using Xcode and testing this can cause the history to remove itself when you stop running the app.

Unable to locate my stickers in message app after installed my app
 
 
Q