Skip to content
This repository was archived by the owner on Jul 24, 2019. It is now read-only.
This repository was archived by the owner on Jul 24, 2019. It is now read-only.

AppIcon doesn't work #23

Description

@getaaron

This tool can't extract AppIcon.

Instead of:

for (NSNumber *scaleFactor in @[@1, @2, @3])
{
    CUINamedImage *image = [catalog imageWithName:key scaleFactor:scaleFactor.doubleValue];

    if (image && image.scale == scaleFactor.floatValue) [images addObject:image];
}

I tried simply:

[images addObjectsFromArray:[catalog imagesWithName:key]];

In my one test, this added 23 images to the array, which are of type CUINamedMultisizeImageSet.h , which doesn't respond to -size, and therefore crashes on CGSizeEqualToSize(image.size, CGSizeZero). Looks like this type is new in iOS 11 (it's not present in the iOS 10 runtime headers).

So if we want to make this work we'll have to add support for this type.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions