git clone https://github.com/MagicSketch/XcodeTemplate-SketchPlugin.git ~/Library/Developer/Xcode/Templates/Sketch\ Plugin
https://blog.magicsketch.io/sketch-plugin-xcode-template-c8236a6f7fff
- Sketch Plugin Bundle (generates a .sketchplugin)
- Sketch Plugin Framework (generates a .framework)
- Sketch Panel UI Framework (generates a .framework for UI purpose)
This will generate necessary files that you needed for your first Sketch plugin that will build with Xcode. You should almost always start with the when creating a new Xcode project.
Make sure you set the executable in the scheme.
What's Included:
- Auto Generate manifest.json, script.cocoscript
- Auto Install Plugin to Sketch plugin folder
- Post Process manifest.json to auto fill PLUGIN_VERSION, PLUGIN_IDENTIFIER, PLUGIN_BUILD
- Added Appcast default URL for Sketch 45 auto update feature
This will generate a .framework ready for you to integrate in your .sketchplugin
After you create this target, go back select your bundle, and configure the Target Dependancy and the Copy File phase.
This will generate a .framework ready for you to write your own inspector panel UI in Sketch.
Make sure you'll have to set the target dependancy and copy files like usual framework procedures, and also manuall set CocoaScript.framework and Mocha.framework to Optional in Target Membership