-
-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEAT] Add support for Creating/Deleting On Demand Resource Tags #298
Comments
Thanks for reporting this. Although there is no direct API to do this operation in one go, all APIs to achieve it are available at the moment. I haven't tried it myself, but something like this will get you going:
I will keep the issue open, if this solution works it can be an starting point for the improvement. |
@kronenthaler Thanks for the quick response! I will give this a go, and if all looks good, I may take a stab at contributing, and open a PR |
@ignkarman Did you finally solve this problem? |
I believe I got this to work using the below
where 'tag' is the tag you want to use |
Is your feature request related to a problem? Please describe.
On Demand Resource tags can only be manipulated through Xcode's project settings GUI. This is very annoying when you have processes that install new resources into your application, but then need to manually tag their resources
Describe the solution you'd like
KnownAssetTags
object in the /* Begin PBXProject section */It seems it would be fairly easy to mutate this list.
6A73EA5125C074F800669235 /* 265 in Resources */ = {isa = PBXBuildFile; fileRef = 6A73EA2725C074F000669235 /* 265 */; settings = {ASSET_TAGS = (265, ); }; };
Describe alternatives you've considered
Doesn't seem to be any support for this in the ecosystem, seems people are mutating their pbx files directly via shell scripts. Would be nice to add to this very nice library :)
The text was updated successfully, but these errors were encountered: