R.swift-plugin icon indicating copy to clipboard operation
R.swift-plugin copied to clipboard

Not working with Multi Target dev

Open chanonly123 opened this issue 9 years ago • 5 comments

Not working with Multi Target dev!

chanonly123 avatar Jun 27 '16 07:06 chanonly123

screen shot 2016-06-27 at 12 38 28 pm

R.swift added to single target only, not to other one. but R.swift file not generating.

chanonly123 avatar Jun 27 '16 07:06 chanonly123

Sorry R.swift-plugin doesn't support multi-target right now. I will add this request to my todo list. THX

azurechen avatar Jun 28 '16 03:06 azurechen

Just a request, can you make R.color.my_color directly as UIColor and others as well. And R.swift also generate from android resource xmls, merge xmls. So xml can be shared with android and iOS projects. Thanks.

chanonly123 avatar Jun 29 '16 06:06 chanonly123

Ok, I will consider the possibility. Could you open another issue about this request? And welcome anybody help to implement these features!

azurechen avatar Jul 01 '16 11:07 azurechen

I had a problem with multiple targets while making a whitelabel app but what I did is I keep all the xib files in main Target but with no modules defined so the R.generated file doesnt create anything like "App.MyCustomView" and just creates "MyCustomView" and use the other target for assets and other deploy options. And as long as I have the assets name the same way in both .xcassets when they are different, like logos and stuff, the R.generated file will have everything. Only problem is the script only runs when running the main target but as all changes are gonna happen in that target it works for me for now.

magpali avatar Apr 06 '17 16:04 magpali