MagicSketch / XcodeTemplate-SketchPlugin

MIT License
106 stars 13 forks source link

PLUGIN_BUILD and PLUGIN_VERSION not updated #9

Closed beatscode closed 6 years ago

beatscode commented 6 years ago

How does this work? image

Seems like the the first Run Script copies the cp -rf ${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME} ~/Library/Application\ Support/com.bohemiancoding.sketch3/Plugins/

The next script seems to replace the variables in the manifest.json file. For some reason it isn't working for me. I updated the user-defined variables but the values are not updated.

Manifest.json

    "compatibleVersion": 44,
    "build": 3,
    "version": "1.0",

Build Settings image

You can see in the logs that that my user defined values are being passed to the script, but its replacing values in

CONFIGURATION_BUILD_DIR = /Users/alex/Library/Developer/Xcode/DerivedData/GoodStuff-ccxudmdkugiycvclwmvbysvlzuxu/Build/Products/Debug

If the configuration build dir is tended to first then why is the first run script copying the plugin. I tried reversing these two scripts and that didn't work either.

Any Suggestions?

beatscode commented 6 years ago

Of course it makes sense now if I change the User Defined Settings to PLUGIN_BUILD and PLUGIN_VERSION then update the values in the actual build script. I must have changed the variables trying to figure out how to change the values.