Code Monkey home page Code Monkey logo

ichat2json's Introduction

ichat2json

Reads an .ichat binary plist file and writes newline-separated JSON to STDOUT

Run Instructions

  • Open ichat2json.xcodeproj with Xcode.
  • Build it.
  • In console you'll find the path of the executable.

Console:

Usage:  /Users/[YOURUSER]/Library/Developer/Xcode/DerivedData/ichat2json-fgxipssxrjlhvrevepwucnmapdzq/Build/Products/Debug/ichat2json path/to/ichat

Copy the path, and use this command in a Terminal to dump it in a file:

EX:

cd /PATH_TO_YOUR_ICHAT_FILE
/Users/[YOURUSER]/Library/Developer/Xcode/DerivedData/ichat2json-fgxipssxrjlhvrevepwucnmapdzq/Build/Products/Debug/ichat2json file.ichat > file.json

Special Thanks

ichat2json's People

Contributors

kfatehi avatar michaelnew avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ichat2json's Issues

Fails when there is an attachment

[keyvan@shake imessage-bridge]$ bin/ichat2json ~/Library/Containers/com.apple.iChat/Data/Library/Messages/Archive/2016-12-09/Ali\ Sohraby\ on\ 2016-12-09\ at\ 14.33.00.ichat
2016-12-09 22:13:37.245 ichat2json[7915:1399179] *** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: '*** -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (NSTextAttachment) for key (NS.objects); the class may be defined in source code or a library that is not linked'
*** First throw call stack:
(
        0   CoreFoundation                      0x00007fff874024f2 __exceptionPreprocess + 178
        1   libobjc.A.dylib                     0x00007fff8f01ff7e objc_exception_throw + 48
        2   Foundation                          0x00007fff8b2f8721 -[NSCoder(Exceptions) __failWithExceptionName:errorCode:format:] + 0
        3   Foundation                          0x00007fff8b2f8948 -[NSCoder(Exceptions) __failWithExceptionName:errorCode:format:] + 551
        4   Foundation                          0x00007fff8b1d17b5 _decodeObjectBinary + 3593
        5   Foundation                          0x00007fff8b1d08a5 _decodeObject + 281
        6   Foundation                          0x00007fff8b28c2eb +[NSKeyedUnarchiver unarchiveObjectWithFile:] + 156
        7   ichat2json                          0x000000010aa93c26 main + 614
        8   libdyld.dylib                       0x00007fff88a1f5ad start + 1
        9   ???                                 0x0000000000000002 0x0 + 2
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6

Add Run Instructions

Would it be possible for you to add information on how to run this application?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.