Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
fix copy multiple .xcassets resource error #3358
if a project has multiple .xcassets folder, the copy_resources.sh will occur a error.
i found the problem in copy_resources.sh
'while read line' commond will read all result rather than one line of result.
This PR seems good.
The travis failure is only due to integration specs not being rebuilt with the fixed script, we should probably fix/rebuild them along the way but I won't have time today, so postponing the merge until then. (except if @mrackwitz do rebuild them again today
I think both versions fail if there are spaces in the file name. My alternate version is this:
It works for me but I've not done much testing beyond my one project that was failing.
(I can create a pull request if you like but it might be easier to include in this one?)
I have same issue with large project containing multiple XCassets and App extension.
My solution was to use @sdarlington fix:
changing line 172 to
Here's step by step for those who has same problem: