Comments (6)
What is the contents of the output file look like?
from ipsw.
Problem string:
[ <-- Bad, this is in the middle of the JSON.
{
"cache_file_offset": 1692663784,
"cache_vm_address": 8135114728,
"target": 8049909977,
"pointer": {
"value": 1607459033,
"next": 1
}
},
{
"cache_file_offset": 1692663792,
"cache_vm_address": 8135114736,
"target": 8049910296,
"pointer": {
"value": 1607459352,
"next": 1
}
},
{
"cache_file_offset": 1692663800,
"cache_vm_address": 8135114744,
"target": 8049909983,
"pointer": {
"value": 1607459039,
"next": 0
}
}
] <-- Bad
[ <-- Bad
{
"cache_file_offset": 1692680296,
"cache_vm_address": 8168685672,
"target": 6443202716,
"pointer": {
"value": 751772,
"next": 2
}
},
{
"cache_file_offset": 1692680312,
"cache_vm_address": 8168685688,
"target": 8267500200,
"pointer": {
"value": 1825049256,
"next": 2
},
"symbol": "__OBJC_$_PROTOCOL_INSTANCE_METHODS_NSObject"
},
{
"cache_file_offset": 1692680328,
"cache_vm_address": 8168685704,
"target": 8267500664,
"pointer": {
"value": 1825049720,
"next": 2
},
"symbol": "__OBJC_$_PROTOCOL_INSTANCE_METHODS_OPT_NSObject"
},
{
"cache_file_offset": 1692680344,
"cache_vm_address": 8168685720,
"target": 8267500696,
"pointer": {
"value": 1825049752,
"next": 2
},
"symbol": "__OBJC_$_PROP_LIST_NSObject"
}
from ipsw.
So it's multiline JSON, where the ] [
should be a boundary of the JSONL line.
This is because each line goes with a different DSC mapping. I usually filter the results w/ jq
which can handle multi-list JSON just fine.
So you'd either include a preprocessing step to break it into several JSON files OR I could create multiple JSON files when the --output
flag is used in ipsw
from ipsw.
I mean, knowing it's JSONL makes this much less of a problem. I think maybe updating the help message to specifying the output is in JSONL format would probably be sufficient.
from ipsw.
I pushed a commit that now names the file .jsonl
to notify people that it's not normal JSON
from ipsw.
is in latest release
from ipsw.
Related Issues (20)
- objc class-dump crash HOT 3
- ipsw dl dev - add more docs about error cases
- class dump objc categories class name missed for NSObject/UIView etc. HOT 14
- `ipsw class-dump` processForwardDeclarations protocol props/methods HOT 1
- `ipsw class-dump` pull structs out into Type.h file HOT 1
- `ipsw class-dump DSC Foundation --headers` not making a file for `_NSAttributedStringFromMarkdownCreator` protocol HOT 4
- why `ipsw` isn't able to locate the symbol for the NSObject class HOT 2
- ipsw can't parse symbol tables for macOS 14.4(.1) DSCs HOT 4
- ipsw swift-dump --arch option HOT 1
- Refresh `--help` output HOT 1
- error when class-dump HOT 12
- ipsw dyld extract --all fails with optimization failure HOT 2
- SIGSEGV when scanning macOS 14.4.1 IPSW HOT 4
- ipsw swift-dump errors on Intel HOT 2
- Fix docs full text search HOT 1
- Resumed downloads freeze when complete
- New `ipsw verify` command? HOT 1
- Trying to `class-dump` UIKitCore results in out of range exception HOT 4
- fail to class dump HOT 4
- class dump all images
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ipsw.