MagicSketch / XcodeTemplate-SketchPlugin

MIT License
106 stars 13 forks source link

Sed: can't read : No such file or directory #3

Open jkusachi opened 7 years ago

jkusachi commented 7 years ago

Could be a similar issue as https://github.com/MagicSketch/XcodeTemplate-SketchPlugin/issues/1

When building, I get the following error:

Sed: can't read : no such file or directory. Run during Run custom shell script 'Run Script'

BearRan commented 5 years ago

I try the following method, and this is work for me. Delete the "" in the script sed -i "" -e "s/PLUGIN_IDENTIFIER/$PLUGIN_IDENTIFIER/g" "$f2" And the correct result is sed -i -e "s/PLUGIN_VERSION/$PLUGIN_VERSION/g" "$f2" sed -i -e "s/PLUGIN_BUILD/$PLUGIN_BUILD/g" "$f2" sed -i -e "s/PLUGIN_IDENTIFIER/$PLUGIN_IDENTIFIER/g" "$f2"

I think the sed options and parameters have some error.