rickytan / RTImageAssets

A Xcode plugin to automatically generate 2x, 1x image from 3x image for you, or upscale to 3x from 2x
MIT License
2.46k stars 334 forks source link

Can't find any .xcassets bundle #70

Closed appfabtech closed 5 years ago

appfabtech commented 8 years ago

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

rickytan commented 8 years ago

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

appfabtech commented 8 years ago

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 https://github.com/rickytan/RTImageAssets/issues/70#issuecomment-150747719.

SentoCrespo commented 8 years ago

+1 , please fix it :_

prasenr commented 8 years ago

Please fix this

rickytan commented 8 years ago

What OS X type do you use?

prasenr commented 8 years ago

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 https://github.com/rickytan/RTImageAssets/issues/70#issuecomment-153551046 .

rickytan commented 8 years ago

Possibly, I'm still using Yosemite

prasenr commented 8 years ago

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 https://github.com/rickytan/RTImageAssets/issues/70#issuecomment-153556635 .

balkarov commented 8 years ago

I have this problem too

rickytan commented 8 years ago

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

wanghaolyj commented 8 years ago

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!

SentoCrespo commented 8 years ago

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

rickytan commented 8 years ago

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

SentoCrespo commented 8 years ago

Then possible solutions:

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

rickytan commented 8 years ago

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

SentoCrespo commented 8 years ago

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.

Ged2323 commented 8 years ago

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.