Carplay在CPNowPlayingTemplate显示图片的败,且不可点击

System: iOS 18.1.1

When connected to Carplay, after playing a song, check the playback page CPNowPlayingTemplate. This error appears on the BMW car, as shown in the picture: In our project, this is achieved using the following methods:

UIImage *image1 = [UIImage imageNamed:@"imageName"];;
CPNowPlayingImageButton *button1 = [[CPNowPlayingImageButton alloc] initWithImage:image1 handler:^(__kindof CPNowPlayingButton * _Nonnull action) {
    //do something
}];

UIImage *image2 = [UIImage imageNamed:@"imageName"];;
CPNowPlayingImageButton *button2 = [[CPNowPlayingImageButton alloc] initWithImage:image2 handler:^(__kindof CPNowPlayingButton * _Nonnull action) {
    //do something
}];
NSArray<CPNowPlayingButton *> *buttons;
buttons = @[button1,button2];
[[CPNowPlayingTemplate sharedTemplate] updateNowPlayingButtons:buttons];

Is there any way to solve this problem?

Hello, are you sure that the UIImages you are providing are non-nil? The question-mark glyph will show if your images cannot be loaded for any reason.

Carplay在CPNowPlayingTemplate显示图片的败,且不可点击
 
 
Q