Skip to content

Conversation

@johndpope
Copy link

No description provided.

@johndpope
Copy link
Author

actually - this is failing with
"kind": "finished",
"name": "compile",
"pid": 10175,
"output": "\u001B[1m:0: \u001B[0;1;31merror: \u001B[0m\u001B[1mfatal error encountered during compilation; please file a bug report with your project and the crash log\n\u001B[0m\u001B[1m:0: \u001B[0;1;30mnote: \u001B[0m\u001B[1munsupported relocation with subtraction expression, symbol 'deflateInit2' can not be undefined in a subtraction expression\n\u001B[0m",
"exit-status": 1

@johndpope
Copy link
Author

I have a fix. tidwall/DeflateSwift#8 will update PR.

swift 4/ fixes for zlib
@johndpope johndpope changed the title swift 3 fixes - updates. swift 4 fixes - updates. Jul 23, 2018
@johndpope
Copy link
Author

fyi - afro is using python's kaitai wrapper to read apple's apfs - would love to get this working with swift program if anyone is interested to collaborate. https://github.com/cugu/afro/tree/master/afro/libapfs

@johndpope
Copy link
Author

johndpope commented Jul 24, 2018

@mothlike - if we use the pythonscala template as a swift template
https://github.com/kaitai-io/kaitai_struct_compiler/blob/18cecf49a36446e6d0e2e3d98a00f1c346e7446a/shared/src/main/scala/io/kaitai/struct/languages/PythonCompiler.scala

-> swift

I'm happy to help / draft / refine this together to get the apfs.fsk file to parse out with this library.
https://github.com/cugu/afro/blob/master/afro/libapfs/apfs.ksy

I'm probably going to manually build this out tomorrow into swift file anyway.
I moved this to own repo - https://github.com/johndpope/kaitai-apfs-swift/

it seems there's one extra attribute hasattr that's used in this python file
https://github.com/cugu/afro/blob/master/afro/libapfs/apfs.py

(there's this old code that's attempting to port this function to swift
https://github.com/practicalswift/Pythonic.swift/blob/master/src/Pythonic.swift)

johndpope added a commit to johndpope/kaitai-apfs-swift that referenced this pull request Jul 24, 2018
@johndpope
Copy link
Author

I threw this code up - it's just a skeleton right now (and needs camel casing). https://github.com/johndpope/kaitai-apfs-swift/blob/master/SwiftKaitai/SwiftKaitai/APFS.swift

any pointers would be appreciated on piggy backing off the kaitai_struct_swift_runtime

@johndpope
Copy link
Author

heads up - getting closer to having a worker apfs parser - https://github.com/johndpope/kaitai-apfs-swift. we should be able to cherry pick some of the code into /scala swift template generator.

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

Successfully merging this pull request may close these issues.

2 participants