Post

Replies

Boosts

Views

Activity

iMessage app/extension icon not visible on iOS 17
I'm trying to make a simple iMessage app, which I haven't done before so I'm not super familiar with the process. I created a new project following the "iMessage App" template. I have an icon set named "iMessage App Icon" in the *MessagesExtension Assets catalog (and it says "Stickers Icon" in the top right corner). This is what was created by default with the project. I have filled out all of the icons in the iconset, and none of them have warnings. When I install the app into an iOS 16 simulator and open iMessage, the icon appears exactly as expected. However, when I install the app into an iOS 17 simulator, or onto my iPhone 15 Pro running 17.3.1, and scroll through the new iMessage app interface, my app still has the default white grid-lines styled icon. On basically every forum post I've read trying to solve this issue, I see people referring to "App Icon source in Target -> General", and in a normal app I would have that, however neither the host app target or the messages extension target have an "App Icons and Launch Screen" section. The only sections I have are "Supported Destinations", "Minimum Deployments", "Frameworks and Libraries", and "Development Assets". I'm not sure if this missing section is due to different versions of Xcode? (I am using 15.2) or if this indicates some larger problem with my project / the iMessage app template. Any leads as to solve this would be greatly appreciated.
0
0
705
Feb ’24
PencilKit is throwing GPU/Metal errors (Insufficient Memory)
For context: I'm working on a score pad app, with the ability to have a column of PKCanvases, so you can just hand write things without them being scribbled into text. As part of my stress testing, I basically filled the grid with ~50 canvases, and it seems that after a certain amount of CanvasViews are added to the score pad, my M1 iPad Pro GPU is unable to keep up. Occasionally, a cell will just entirely render as magenta, and I will have dozens and dozens of Execution of the command buffer was aborted due to an error during execution. Insufficient Memory (IOAF code 8) logs thrown to the console. I honestly don't know where to go from here. I recognize that what I'm doing is almost definitely not what PencilKit was designed for, but I also know the API is relatively young. I can't tell if this is a bug that should be fixed by Apple, or entirely my fault and a sign that I need to redo the entire thing. I've attached a screenshot with the magenta cell, there's also another two cells where the pencil strokes are just thick black squares. I'd appreciate any advice or help, I can't even seem to find any way to detect and recover from this in my code, as trying to search for Metal errors gives me discussions about writing Metal apps, which this isn't. It's a pure SwiftUI app with some PencilKit canvases.
6
0
3.3k
Jul ’21