Fogmeister
Fogmeister

Reputation: 77661

AppCode warning "Resource not found" when using Asset Catalog

I have added an image set to the asset catalog (in Xcode) and then intended to access this in code.

enter image description here

The code I am using (in AppCode) is...

UIImage *image = [UIImage imageNamed:@"Photo_Placeholder"];

I know this works and is correct. However, AppCode is telling me "Resource Not Found".

enter image description here

I know that this is only a warning and the build works anyway but I wondered if there is a way to get AppCode to recognise the names of the image sets in an Asset Catalog? At the moment it auto completes the image name based on the files not the image set name.

Upvotes: 2

Views: 462

Answers (1)

Stanislav Dombrovsky
Stanislav Dombrovsky

Reputation: 752

Sorry for the inconvenience, it's a known problem in current AppCode version. Please, follow this issue in our tracker to receive updates.

Upvotes: 2

Related Questions