Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot find function in MSPasteboardLayers at sketch v88.1 #27

Open
fendouxiaohaier opened this issue Jun 8, 2022 · 10 comments
Open

cannot find function in MSPasteboardLayers at sketch v88.1 #27

fendouxiaohaier opened this issue Jun 8, 2022 · 10 comments

Comments

@fendouxiaohaier
Copy link

how to use function setSymbols or setLocalSymbols in MSPasteboardLayers at sketch v88.1

@abynim
Copy link
Owner

abynim commented Jun 9, 2022

Sorry my export-headers script has stopped working since Sketch 83.1 and I haven't been able to find a solution. So I don't know the answer to this question.

@fendouxiaohaier
Copy link
Author

Thank you very much

@LeoNatan
Copy link

@abynim Could you please post the script you are using? Thanks

@abynim
Copy link
Owner

abynim commented Jul 1, 2022

@LeoNatan
Copy link

LeoNatan commented Jul 1, 2022

@abynim Thanks, I will take a look soon.

@LeoNatan
Copy link

LeoNatan commented Jul 3, 2022

@abynim What isn't working for you with that script?
I built class-dump from https://github.com/NSGod/class-dump, ran the commands you run to extract headers from frameworks, and it worked for the latest Sketch Beta. Perhaps the class-dump you are using is too outdated?

@abynim
Copy link
Owner

abynim commented Jul 4, 2022

Thanks for testing it @LeoNatan. That might be it. IIRC I could not get the latest class-dump to build, and didn't have time to dig deeper into it. Can you send me the class-dump build you generated and I can try to use that in the script? Please send to abynimbalkar at gmail if you're able to. Thanks!

@LeoNatan
Copy link

LeoNatan commented Jul 4, 2022

@abynim I just sent you my build. Let me know if it works or doesn't, so we can thing why it works for me locally but not for your workflow.

@LeoNatan
Copy link

LeoNatan commented Jul 4, 2022

I also devised a system that demangles Swift names in files, so that they appear as Sketch.UploadCollectionItem.h instead of _TtC6Sketch20UploadCollectionItem.h. Let me know if you are interested in integrating it in your flow.

@gaoshun
Copy link

gaoshun commented Jul 11, 2022

@fendouxiaohaier can use Object-C KVC
example:

const pasteboardLayers = MSPasteboardLayers.new()
pasteboardLayers.setValue_forKey(symbols, 'localSymbols')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants