Avoid compiling xcassets in some cases

Added a condition to avoid compiling xcassets when WRAPPER_EXTENSION
is undefined, as it would be in the case of static libraries. This prevents
trying to copy the compiled files to a directory that does not exist.
[CHANGELOG]
Merge pull request #1521 from nmccann/feature/fix_resources_script

Avoid compiling xcassets in some cases