Skip to content
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

.rswiftignore doesn't work for one of the folders inside assets #793

Open
anatoliykant opened this issue Dec 20, 2022 · 1 comment
Open

Comments

@anatoliykant
Copy link

anatoliykant commented Dec 20, 2022

In my project, there is a folder with images that should be used only for working with the database, and in my code I do not explicitly refer to them (for example, R.image.closeIcon()).
This directory is located inside asset and has the path:
/Users/anatoliy/Documents/develop/work/ELEL/iOS/mobile-ios23/DMVGenius/Resources/Assets/AssetsDMV.xcassets/imagesUS

I attached a screenshot of what the asset structure looks like in Xcode and in Finder:

I added exceptions to the .rswiftignore file for such a folder so that R.swift objects are not generated for the image from this folder:

# **/AssetsDMV.xcassets/imagesUS/*

DMVGenius/Resources/Assets/AssetsDMV.xcassets/imagesUS

**/imagesUS/*

But that didn't work for me and I still get xcode warnings:

[R.swift] Skipping 974 images because no swift identifier can be generated for all of these images: '050520132206252694', '050520132211282376', '110320131739549584', '110320131744509927', '140320131714351981', '1573301280', 
...
'202007151952104222', '202007152024341579', '202007161124338470', '202007161144073258', '202007161144073258', '202007161153196086', '202007161212064082', '202007161212064082', '202007161221019734', '202007161221019734', '202007170350016908', '202007170527116755', '202007170532436592', '202007170536349573', '202007170635053253', '202007170650315090', '202007170657369869', '202007170703183192', '202007170745173728', '202007170818264860', '202007170851405575', '202007170859214677', '202007170905174666', '202007170913136452', '202007170920546009', '202007170927083469', '202007171714203189', '202007171751013120', 'LLVM Profile Error: Failed to write file "default.profraw": Operation not permitted

Any ideas how to get the exception to work and not throw errors for a particular directory (imagesUS)?

P.S. The remaining folders with images and icons inside this assets are used by me explicitly in the project code.

@anatoliykant
Copy link
Author

@tomlokhorst
Hey, if you need more information, I'm ready. 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants