karstenbriksoft / plistexplorer Goto Github PK
View Code? Open in Web Editor NEWCocoa Tool to inspect files written by NSKeyedArchiver
License: Creative Commons Zero v1.0 Universal
Cocoa Tool to inspect files written by NSKeyedArchiver
License: Creative Commons Zero v1.0 Universal
I have been looking for a tool to convert NSKeyedArchiver plists into JSON strings. Could this tool be adapted for that purpose? Unfortunately, I don't have the knowledge to do this myself. Thank you!
Hi
I created a new Cocoa Touch Framework (Objective-C) project and added you files. I needed to update the header references to <Cocoa/Cocoa.h>
to <UIKit/UIKit.h>
and the import references from #import "objc/objc-class.h"
to #import <objc/runtime.h>
.
All seemed to build OK, however when I run the same archive file through the Cocoa Touch Framework library I crash out with:
-[__NSArrayI enumerateKeysAndObjectsUsingBlock:]: unrecognized selector sent to instance 0x60c0002726c0
2018-05-11 16:18:01.395263+1000 tester2[44019:14690035] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayI enumerateKeysAndObjectsUsingBlock:]: unrecognized selector sent to instance 0x60c0002726c0'
I've create a simple iOS app in Swift to invoked the PlistExplorer functions as follows:
import UIKit
import PlistExplorerKit
class ViewController: UIViewController
{
override func viewDidLoad()
{
super.viewDidLoad()
guard let path = Bundle.main.path(forResource: "accounts", ofType: "archive") else
{
print("can't find accounts.archive file.")
return
}
let explorer = PlistExplorer.init()
_ = explorer .crackFile(path)
explorer.logYourself()
}
}
When I execute NSLog(@"\n%@", [data logString]);
in the Cocoa Touch library the output is:
NSData with: 4742 Bytes
In the PlistExplorer code, the same file returns:
NSData with: 5182 Bytes
Are you aware of any differences between a Cocoa app vs a Cocoa Touch Framework? Do you have any suggestions to convert the project into a framework that can be used in Swift?
Thanks for your help.
Hi,
What is the license for this code?
Can I assume it's MIT or something similar?
Kind regards
So that it could be visualized with OmniOutliner for example.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.