rickytan/RTImageAssets

Can't find any .xcassets bundle

Closed this issue · 17 comments

Hi, my projects use .xcassets bundles, and they used to work with RTImageAssets before upgrading to Xcode 7
Now I always get this error
This plugin doesn't support origin images in Project resources, please use Asset Catalogs
every time I try to use it

It works on Xcode 6.x , but not 7 ? Did you make any changes to your project ?

Yes, with all the projects in Xcode 6 and noone in 7

Ricky Tan mailto:notifications@github.com
24 ottobre 2015 05:14

It works on Xcode 6.x , but not 7 ? Did you make any changes to your
project ?


Reply to this email directly or view it on GitHub
#70 (comment).

+1 , please fix it :_

Please fix this

What OS X type do you use?

El capitan.
Is is because of it?
On 04-Nov-2015 7:54 am, "Ricky Tan" notifications@github.com wrote:

What OS X type do you use?


Reply to this email directly or view it on GitHub
#70 (comment)
.

Possibly, I'm still using Yosemite

When will you be testing it on OSx el capitan, because el capitan is
currently has major market share
On 04-Nov-2015 8:32 am, "Ricky Tan" notifications@github.com wrote:

Possibly, I'm still using Yosemite


Reply to this email directly or view it on GitHub
#70 (comment)
.

I have this problem too

I've tested on a newly installed EI Capitan, it seems alright

You have to put your .xcassets in the folder the same name with the project, which means, if your project is abc.xcodeproj, and the assets must be in the abc folder

I change the folder name , then it work alright!

But the thing should be to find any name in any subfolder, if not... bad thing.

If your use 3rd party libraries, and they have their own assets, it is not good to modify them. @vCrespoP

Then possible solutions:

  • Search only in the current project.
  • Make an action directly from the folder that we want the imageAssets to resize.
  • Present the user all the assets folders and let him choose the one he wants.
  • ... ?

We may have several folders, with different names in a single project, so having just one fixed folder name is not always suitable.

Yes, Xcode allows you to put files in different folders, but I mean one should put all the files belong to the project into the folder the same name with the project, and leave the third party libraries to the different names. Or it may be confusing.

And you can change the search path HERE if you like:

https://github.com/rickytan/RTImageAssets/blob/master/RTImageAssets/RTImageAssets.m#L157

Yes and no.

For example, the case where you have general images for a project, and you put that into:
Main Folder > Resources > Images
BUT then you have some specific images for different builds outside that folder to differ them easily.
Main Folder > Resources > WhiteLabelImages (or whatever)

Changing the path is not really the most suitable solution but I understand your point, that's why I suggested that the action of resizing everything was tied to the folder we chose.

I wouldn't like to modify 3rd party frameworks, I agree with you in this point.

Thanks for your response and this discussion.

It works for El Captain. You just have to make sure the image assets are in the folder that is the name of your project.

If your project s called "ProjectA" then you have to have the image assets in the same folder of your project.

Generate missing assets for other UIImages works on El Captain only if you move the image into the 2x image. If there is only an image in the 1x then it will not generate the missing icons.