sketch-measure icon indicating copy to clipboard operation
sketch-measure copied to clipboard

更新了sketch57以后,不能导出规范了

Open simon-shaw opened this issue 5 years ago • 6 comments

sketch 57 measure 2.8.1 文件的所有symbol均来自外部的组件库,当我将组建分离之后就可以导出。 是否是不支持外部组件库的symbol导致的。

simon-shaw avatar Aug 20 '19 01:08 simon-shaw

Same here:

Could not read image data at /Users/jebbs/Library/Application Support/com.bohemiancoding.sketch3/Plugins/Looper.sketchplugin/Contents/Resources/https:/github.com/sureskumar/Looper/raw/master/assets/logo.png
*** -[__NSArrayM objectAtIndex:]: index 9 beyond bounds [0 .. 8]

If detach all symbols, works fine.

qjebbs avatar Aug 28 '19 03:08 qjebbs

是的 @qjebbs 但是这样做非常麻烦,而且会造成一些标注不准确

simon-shaw avatar Aug 28 '19 10:08 simon-shaw

@simon-shaw See if this helps: https://github.com/utom/sketch-measure/issues/614#issuecomment-525582696

qjebbs avatar Aug 29 '19 01:08 qjebbs

I found the cause. It happens when user creates and uses a symbol, which with Backgroud & checked Include background in instances:

image

This will create an extra rectangle with fill color of the background, for the detached instance, that's why the index always 1 more beyond the bounds.

qjebbs avatar Aug 29 '19 04:08 qjebbs

我的symbol没有“包含于实例” image 另外,大部分symbol是从文档外的组件库插入的 image

simon-shaw avatar Aug 29 '19 08:08 simon-shaw

https://github.com/ellunium/sketch-measure-latest 下载这个热心网友的吧 我57 版本的导出没问题

Jeason0228 avatar Aug 29 '19 08:08 Jeason0228