question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sketchtool isn't exporting, giving an [MSUnarchiver decodeObjectForKey:]: cannot decode object of class (MSImmutableSharedStyleContainer) for key (layerStyles) error #630

See original GitHub issue

Seems to be an integration error with Sketch 3.5 + Sketch Tool + git-sketch-plugin

  • Sketch 3.5
  • latest git-sketch-plugin
  • git 2.7.1

Full Error:

2016-02-12 09:39:13.501 sketchtool[69844:2892800] Error: caught exception whilst suppressing update events: *** -[MSUnarchiver decodeObjectForKey:]: cannot decode object of class (MSImmutableSharedStyleContainer) for key (layerStyles); the class may be defined in source code or a library that is not linked
2016-02-12 09:39:13.502 sketchtool[69844:2892800] Error: caught exception whilst decoding (version 76):*** -[MSUnarchiver decodeObjectForKey:]: cannot decode object of class (MSImmutableSharedStyleContainer) for key (layerStyles); the class may be defined in source code or a library that is not linked
Failed to open document test.sketch -- file:///Users/bryanberger/Desktop/test/
((null) MSDocumentDomain:11)

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mathieudutourcommented, Feb 24, 2016

Oh but your version of sketchtool is 3.4 while it should be 3.5. The sketch format is not compatible between 3.4 and 3.5

0reactions
bryanbergercommented, Feb 24, 2016

fixed it thanks.

sketchtool Version 3.5.2 (25235)

Read more comments on GitHub >

github_iconTop Results From Across the Web

NSKeyedUnarchiver decodeObjectForKey: cannot decode ...
My Products class begins with @Objc: import Foundation @objc(Products) class Products: NSObject, Codable, NSCoding ...
Read more >
Cannot decode object of class (GameScene) for key (root)
I am using Xcode 8.0 beta and iOS 10, which may be the problem, but is there any other way to fix this?...
Read more >
cannot decode object of class (OSInAppMessageInternal) for ...
oh, when i run my project crash in there. 2021-09-09 09:30:56.071455+0800 Lit Live[42366:195012] *** Terminating app due to uncaught exception ...
Read more >
NSKeyedUnarchiver : cannot decode object of class - MSDN
Hi there! I'm being unable to decode through "NSKeyedUnarchiver.UnarchiveFile(documents)" an iOS saved plist file. It gives me the following ...
Read more >
cannot decode object of class for key (NS.objects)-swift
Coding example for the question NSKeyedUnarchiver decodeObjectForKey: cannot decode object of class for key (NS.objects)-swift.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found